#include <joystick.h>
Public Member Functions | |
| Joystick (void) | |
| Short Description. | |
| void | resize (int width, int height) |
| Short Description. | |
| void | display (void) |
| Short Description. | |
| void | joystick (unsigned int buttons, int xaxis, int yaxis, int zaxis) |
| Short Description. | |
Private Member Functions | |
| void | drawButton (int button, int down) |
| Short Description. | |
Private Attributes | |
| float | joystickAxis [MAX_AXES] |
| int | joystickButtons |
| float | ar |
Static Private Attributes | |
| static const int | MAX_AXES = 3 |
| static const GLfloat | light_ambient [] = { 0.0f, 0.0f, 0.0f, 1.0f } |
| static const GLfloat | light_diffuse [] = { 1.0f, 1.0f, 1.0f, 1.0f } |
| static const GLfloat | light_specular [] = { 1.0f, 1.0f, 1.0f, 1.0f } |
| static const GLfloat | light_position [] = { 2.0f, 5.0f, 5.0f, 0.0f } |
| static const GLfloat | mat_ambient [4] = { 0.7f, 0.7f, 0.7f, 1.0f } |
| static const GLfloat | mat_diffuse [4] = { 0.8f, 0.8f, 0.8f, 1.0f } |
| static const GLfloat | mat_specular [4] = { 1.0f, 1.0f, 1.0f, 1.0f } |
| static const GLfloat | high_shininess [1] = { 100.0f } |
| static const float | sf = 2.0f |
Definition at line 6 of file joystick.h.
|
|
Short Description. Long Description if necessary.
Definition at line 166 of file joystick.cpp. References ar, i, joystickAxis, joystickButtons, and MAX_AXES. |
|
|
Short Description. Long Description if necessary.
Definition at line 66 of file joystick.cpp. References ar, drawButton(), f, high_shininess, joystickAxis, joystickButtons, light_ambient, light_diffuse, light_position, light_specular, mat_ambient, mat_diffuse, mat_specular, and sf. Referenced by display(). |
|
||||||||||||
|
Short Description. Long Description if necessary.
Definition at line 43 of file joystick.cpp. Referenced by display(). |
|
||||||||||||||||||||
|
Short Description. Long Description if necessary.
Definition at line 143 of file joystick.cpp. References joystickAxis, and joystickButtons. Referenced by joystick(). |
|
||||||||||||
|
Short Description. Long Description if necessary.
Definition at line 27 of file joystick.cpp. References ar. Referenced by resize(). |
|
|
Definition at line 22 of file joystick.h. Referenced by display(), Joystick(), and resize(). |
|
|
Definition at line 19 of file joystick.h. Referenced by display(). |
|
|
Definition at line 7 of file joystick.h. Referenced by display(), Joystick(), and joystick(). |
|
|
Definition at line 9 of file joystick.h. Referenced by display(), Joystick(), and joystick(). |
|
|
Definition at line 11 of file joystick.h. Referenced by display(). |
|
|
Definition at line 12 of file joystick.h. Referenced by display(). |
|
|
Definition at line 14 of file joystick.h. Referenced by display(). |
|
|
Definition at line 13 of file joystick.h. Referenced by display(). |
|
|
Definition at line 16 of file joystick.h. Referenced by display(). |
|
|
Definition at line 17 of file joystick.h. Referenced by display(). |
|
|
Definition at line 18 of file joystick.h. Referenced by display(). |
|
|
Definition at line 7 of file joystick.h. Referenced by Joystick(). |
|
|
Definition at line 21 of file joystick.h. Referenced by display(). |
1.4.4