Annotation of hatari/src/includes/joy.h, revision 1.1.1.2

1.1       root        1: /*
                      2:   Hatari
                      3: */
                      4: 
                      5: typedef struct {
1.1.1.2 ! root        6:   int XPos,YPos;                /* -32768...0...32767 */
        !             7:   int Buttons;                  /* JOY_BUTTON1 */
1.1       root        8: } JOYREADING;
                      9: 
                     10: enum {
1.1.1.2 ! root       11:   JOYSTICK_SPACE_NULL,          /* Not up/down */
1.1       root       12:   JOYSTICK_SPACE_DOWN,
                     13:   JOYSTICK_SPACE_UP
                     14: };
                     15: 
1.1.1.2 ! root       16: #define  USE_FIREBUTTON_2_AS_SPACE      /* Enable PC Joystick button 2 to mimick space bar (For XenonII, Flying Shark etc...) */
1.1       root       17: 
1.1.1.2 ! root       18: #define JOYRANGE_UP_VALUE     -16384     /* Joystick ranges in XY */
        !            19: #define JOYRANGE_DOWN_VALUE    16383
        !            20: #define JOYRANGE_LEFT_VALUE   -16384
        !            21: #define JOYRANGE_RIGHT_VALUE   16383
1.1       root       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_PreventBothUsingCursorEmulation(void);
                     29: extern unsigned char Joy_GetStickData(unsigned int JoystickID);
                     30: extern void Joy_ToggleCursorEmulation(void);

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.