Annotation of frontvm/src/input.h, revision 1.1.1.1

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:        
                     18:        /* change in mouse pos since last polled, absolute position */
                     19:        int motion_x, motion_y;
                     20:        int abs_x, abs_y;
                     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);
                     28: void Call_GetMouseInput ();
                     29: void Call_GetKeyboardEvent ();
                     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.