summaryrefslogtreecommitdiff
path: root/source/in_public.h
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-05-05 21:18:52 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-05-05 21:18:52 +0000
commit0bd55fbf794d11385bcc64b01b81e8e478295bad (patch)
treeab548c3ad37fc13c555a5cca9da4348f3e35d84c /source/in_public.h
parent49e6170b49fbb933eddec6d0e3f946320c68832f (diff)
Brought SDL window resizing policy in compliance to ICCCM.
Renamed `vid_placement' cvar to `vid_geometry'. Load *.pkz files by default. Do not allow backed-up quake paths at all. Apply `--enable-dsound' and `--enable-dinput' options to Unix too. Replaced `s_driver' and `in_driver' cvars with `s_direct' and `in_direct'. Renamed `s_initsound' cva to `s_enable'. Improved SDL input grabs handling in windowed mode. Allow `cl_noskins' to be dynamically changed. Run client at 10 fps if minimuzed, at 60 fps if not active (client is disconnected or in background). Fixed Sys_ExecDefault. Use absolute mouse positioning for UI. Hide custom UI cursor in windowed 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;
-