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

1.1       root        1: /*
1.1.1.3 ! root        2:   Hatari - joy.h
        !             3: 
        !             4:   This file is distributed under the GNU Public License, version 2 or at
        !             5:   your option any later version. Read the file gpl.txt for details.
1.1       root        6: */
                      7: 
1.1.1.3 ! root        8: #ifndef HATARI_JOY_H
        !             9: #define HATARI_JOY_H
        !            10: 
        !            11: typedef struct
        !            12: {
        !            13:        int XPos,YPos;                /* -32768...0...32767 */
        !            14:        int Buttons;                  /* JOY_BUTTON1 */
1.1       root       15: } JOYREADING;
                     16: 
1.1.1.3 ! root       17: enum
        !            18: {
        !            19:        JOYSTICK_SPACE_NULL,          /* Not up/down */
        !            20:        JOYSTICK_SPACE_DOWN,
        !            21:        JOYSTICK_SPACE_UP
1.1       root       22: };
                     23: 
1.1.1.3 ! root       24: enum
        !            25: {
        !            26:        JOYID_JOYSTICK0,
        !            27:        JOYID_JOYSTICK1,
        !            28:        JOYID_STEPADA,
        !            29:        JOYID_STEPADB,
        !            30:        JOYID_PARPORT1,
        !            31:        JOYID_PARPORT2,
        !            32: };
1.1       root       33: 
1.1.1.2   root       34: #define JOYRANGE_UP_VALUE     -16384     /* Joystick ranges in XY */
                     35: #define JOYRANGE_DOWN_VALUE    16383
                     36: #define JOYRANGE_LEFT_VALUE   -16384
                     37: #define JOYRANGE_RIGHT_VALUE   16383
1.1       root       38: 
                     39: extern int JoystickSpaceBar;
                     40: 
                     41: extern void Joy_Init(void);
1.1.1.3 ! root       42: extern Uint8 Joy_GetStickData(int nStJoyId);
1.1       root       43: extern void Joy_ToggleCursorEmulation(void);
1.1.1.3 ! root       44: extern BOOL Joy_KeyDown(int symkey, int modkey);
        !            45: extern BOOL Joy_KeyUp(int symkey, int modkey);
        !            46: extern void Joy_StePadButtons_ReadWord(void);
        !            47: extern void Joy_StePadMulti_ReadWord(void);
        !            48: extern void Joy_StePadMulti_WriteWord(void);
        !            49: 
        !            50: #endif /* ifndef HATARI_JOY_H */

unix.superglobalmegacorp.com

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