40 #define LE_GAMEPAD_THRESHOLD 4096.0f
95 float normalize(int32_t axis);
99 #endif // LE_GAMEPAD_H
LE_GAMEPAD_BUTTONS
gamepad buttons identifiers (masks)
Definition: gamepad.h:47
static void release()
Definition: gamepad_win.cpp:202
~LeGamePad()
Definition: gamepad_win.cpp:105
float stickLeftX
Definition: gamepad.h:79
LightEngine 3D: General engine configuration file.
float stickRightX
Definition: gamepad.h:81
bool detected
Definition: gamepad.h:89
void update()
Update gamepad state (call the driver)
Definition: gamepad_win.cpp:138
int toggled
Definition: gamepad.h:85
int pressed
Definition: gamepad.h:86
int released
Definition: gamepad.h:87
void init()
Initialize gamepad state (default state)
Definition: gamepad_win.cpp:114
Handle gamepads through OS native interface.
Definition: gamepad.h:69
float stickLeftY
Definition: gamepad.h:80
float stickRightY
Definition: gamepad.h:82
static void setup()
Definition: gamepad_win.cpp:183
const LeVertex left
Definition: geometry_scalar.h:665
int buttons
Definition: gamepad.h:84
const LeVertex right
Definition: geometry_scalar.h:666
LeGamePad(int pad)
Definition: gamepad_win.cpp:96
void feedback(float left, float right)
Send a force feedback order.
Definition: gamepad_win.cpp:163