Solar System OpenGL v1.0.0
Loading...
Searching...
No Matches
keyboard_handler.h
Go to the documentation of this file.
1
10#ifndef KEYBOARD_HANDLER_H
11#define KEYBOARD_HANDLER_H
12
13#ifdef __APPLE__
14#include <GLUT/glut.h>
15#else
16#include <GL/glut.h>
17#endif
18
19#include <iostream>
20
28extern bool showOrbits;
29
37extern float cameraDistance;
38
46extern float zoomExcess;
47
55extern int selectedElement;
56
64extern bool paused;
65
77void keyPressed(unsigned char key, int x, int y);
78
79#endif // KEYBOARD_HANDLER_H
float cameraDistance
Distance of the camera from the target.
Definition keyboard_handler.cpp:28
bool paused
Flag to toggle simulation pause state.
Definition keyboard_handler.cpp:47
bool showOrbits
Flag to toggle orbital visibility.
Definition keyboard_handler.cpp:19
float zoomExcess
Additional zoom factor beyond the default.
int selectedElement
Index of the currently selected celestial body.
Definition keyboard_handler.cpp:38
void keyPressed(unsigned char key, int x, int y)
Handles keyboard input for controlling the application.
Definition keyboard_handler.cpp:83