Class used to interface with the handheld gamepad.
Fork of Gamepad by
Diff: Gamepad.cpp
- Revision:
- 16:3ea3d9714b0c
- Parent:
- 14:688bdcbdd3a5
- Child:
- 17:cf1e1ffcf773
--- a/Gamepad.cpp Fri Mar 03 13:12:03 2017 +0000 +++ b/Gamepad.cpp Fri Mar 03 13:19:19 2017 +0000 @@ -220,39 +220,39 @@ // variable void Gamepad::a_isr() { - _event_state.set(EVENT_A_PRESSED); + _event_state.set(A_PRESSED); } void Gamepad::b_isr() { - _event_state.set(EVENT_B_PRESSED); + _event_state.set(B_PRESSED); } void Gamepad::x_isr() { - _event_state.set(EVENT_X_PRESSED); + _event_state.set(X_PRESSED); } void Gamepad::y_isr() { - _event_state.set(EVENT_Y_PRESSED); + _event_state.set(Y_PRESSED); } void Gamepad::l_isr() { - _event_state.set(EVENT_L_PRESSED); + _event_state.set(L_PRESSED); } void Gamepad::r_isr() { - _event_state.set(EVENT_R_PRESSED); + _event_state.set(R_PRESSED); } void Gamepad::back_isr() { - _event_state.set(EVENT_BACK_PRESSED); + _event_state.set(BACK_PRESSED); } void Gamepad::start_isr() { - _event_state.set(EVENT_START_PRESSED); + _event_state.set(START_PRESSED); } void Gamepad::joy_isr() { - _event_state.set(EVENT_JOY_PRESSED); + _event_state.set(JOY_PRESSED); } // get raw joystick coordinate in range -1 to 1