X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fjoystick.h;h=09e2378ce55c040bf2143f58bd7ec5f8bf747ddf;hb=725caa0f8bb826a73edef366906ccb41a3197819;hp=d56c080387668fcdabba62743fd3a85ee0b04b65;hpb=f3e5bb2807319c210d124d6150e019130c54867b;p=virtualjaguar diff --git a/src/joystick.h b/src/joystick.h index d56c080..09e2378 100644 --- a/src/joystick.h +++ b/src/joystick.h @@ -5,15 +5,45 @@ #ifndef __JOYSTICK_H__ #define __JOYSTICK_H__ -#include "types.h" +#include + +enum { BUTTON_FIRST = 0, BUTTON_U = 0, +BUTTON_D = 1, +BUTTON_L = 2, +BUTTON_R = 3, + +BUTTON_s = 4, +BUTTON_7 = 5, +BUTTON_4 = 6, +BUTTON_1 = 7, +BUTTON_0 = 8, +BUTTON_8 = 9, +BUTTON_5 = 10, +BUTTON_2 = 11, +BUTTON_d = 12, +BUTTON_9 = 13, +BUTTON_6 = 14, +BUTTON_3 = 15, + +BUTTON_A = 16, +BUTTON_B = 17, +BUTTON_C = 18, +BUTTON_OPTION = 19, +BUTTON_PAUSE = 20, BUTTON_LAST = 20 }; void JoystickInit(void); void JoystickReset(void); void JoystickDone(void); -void JoystickWriteByte(uint32, uint8); -void JoystickWriteWord(uint32, uint16); -uint8 JoystickReadByte(uint32); -uint16 JoystickReadWord(uint32); +//void JoystickWriteByte(uint32_t, uint8_t); +void JoystickWriteWord(uint32_t, uint16_t); +//uint8_t JoystickReadByte(uint32_t); +uint16_t JoystickReadWord(uint32_t); void JoystickExec(void); -#endif +extern uint8_t joypad0Buttons[]; +extern uint8_t joypad1Buttons[]; +extern bool audioEnabled; +extern bool joysticksEnabled; + +#endif // __JOYSTICK_H__ +