|
|
1.1 ! root 1: /* ! 2: Hatari ! 3: */ ! 4: ! 5: typedef struct { ! 6: int XPos,YPos; // 0...32768...65536 ! 7: int Buttons; // JOY_BUTTON1 ! 8: } JOYREADING; ! 9: ! 10: enum { ! 11: JOYSTICK_SPACE_NULL, // Not up/down ! 12: JOYSTICK_SPACE_DOWN, ! 13: JOYSTICK_SPACE_UP ! 14: }; ! 15: ! 16: #define USE_FIREBUTTON_2_AS_SPACE // Enable PC Joystick button 2 to mimick space bar (For XenonII,Flying Shark etc...) ! 17: ! 18: #define JOYRANGE_UP_VALUE 16384 // Joystick ranges in XY ! 19: #define JOYRANGE_DOWN_VALUE (32768+16384) ! 20: #define JOYRANGE_LEFT_VALUE 16384 ! 21: #define JOYRANGE_RIGHT_VALUE (32768+16384) ! 22: ! 23: extern BOOL bJoystickWorking[2]; ! 24: extern int JoystickSpaceBar; ! 25: extern int cursorJoyEmu; ! 26: ! 27: extern void Joy_Init(void); ! 28: extern void Joy_InitWindows(void); ! 29: extern void Joy_PreventBothUsingCursorEmulation(void); ! 30: extern unsigned char Joy_GetStickData(unsigned int JoystickID); ! 31: extern void Joy_ToggleCursorEmulation(void);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.