Annotation of frontvm/hardware/input.h, revision 1.1.1.2

1.1       root        1: 
                      2: #ifndef _INPUT_H
                      3: #define _INPUT_H
                      4: 
                      5: #include <SDL_keyboard.h>
                      6: 
                      7: #define        SIZE_KEYBUF     16
                      8: #define SIZE_MOUSEBUF  16
                      9: 
                     10: typedef struct {
                     11:        unsigned char key_states[SDLK_LAST];
                     12:        unsigned char key_buf[SIZE_KEYBUF];
                     13:        unsigned char mousebut_buf[SIZE_MOUSEBUF];
                     14:        int buf_head, buf_tail;
                     15:        int mbuf_head, mbuf_tail;
                     16:        int cur_mousebut_state;
                     17:        
1.1.1.2 ! root       18:        /* change in mouse pos since last polled, absolute position */
1.1       root       19:        int motion_x, motion_y;
1.1.1.2 ! root       20:        int abs_x, abs_y;
1.1       root       21:        /* mouse button state when last polled, and now */
                     22:        int mouse_buttons_prev, mouse_buttons_now;
                     23: } INPUT;
                     24: 
                     25: extern INPUT input;
                     26: 
                     27: void Input_PressSTKey (unsigned char ScanCode, BOOL bPress);
1.1.1.2 ! root       28: void Call_GetMouseInput ();
        !            29: void Call_GetKeyboardEvent ();
1.1       root       30: void Input_Update ();
                     31: void Input_MousePress (int button);
                     32: void Input_MouseRelease (int button);
                     33: 
                     34: #endif /* _INPUT_H */
                     35: 

unix.superglobalmegacorp.com

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