Annotation of frontvm/hardware/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 */
                     19:        int motion_x, motion_y;
                     20:        /* mouse button state when last polled, and now */
                     21:        int mouse_buttons_prev, mouse_buttons_now;
                     22: } INPUT;
                     23: 
                     24: extern INPUT input;
                     25: 
                     26: void Input_PressSTKey (unsigned char ScanCode, BOOL bPress);
                     27: void Call_GetMouseInput (unsigned long params);
                     28: void Call_GetKeyboardEvent (unsigned long params);
                     29: void Input_Update ();
                     30: void Input_MousePress (int button);
                     31: void Input_MouseRelease (int button);
                     32: 
                     33: #endif /* _INPUT_H */
                     34: 

unix.superglobalmegacorp.com

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