summaryrefslogtreecommitdiff
path: root/source/in_public.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/in_public.h')
-rw-r--r--source/in_public.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/source/in_public.h b/source/in_public.h
index 82c4a47..47a3ff9 100644
--- a/source/in_public.h
+++ b/source/in_public.h
@@ -22,13 +22,18 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// in_public.h -- external (non-keyboard) input devices
//
+typedef enum {
+ IN_SHOW,
+ IN_HIDE,
+ IN_GRAB
+} grab_t;
+
typedef struct inputAPI_s {
qboolean (*Init)( void );
- void (*Shutdown)( void );
- void (*Activate)( qboolean active );
- void (*Frame)( void );
- void (*ClearStates)( void );
+ void (*Shutdown)( void );
+ void (*Grab)( grab_t grab );
+ void (*Warp)( int x, int y );
+ void (*GetEvents)( void );
+ qboolean (*GetMotion)( int *dx, int *dy );
} inputAPI_t;
-extern inputAPI_t input;
-