2010-02-15 23:26:55 +00:00
/*
Copyright ( C ) 1996 - 2001 Id Software , Inc .
2014-09-22 08:55:46 +00:00
Copyright ( C ) 2010 - 2014 QuakeSpasm developers
2010-02-15 23:26:55 +00:00
This program is free software ; you can redistribute it and / or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation ; either version 2
of the License , or ( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE .
See the GNU General Public License for more details .
You should have received a copy of the GNU General Public License
along with this program ; if not , write to the Free Software
Foundation , Inc . , 59 Temple Place - Suite 330 , Boston , MA 02111 - 1307 , USA .
*/
bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h,
d_ifacea.h, draw.h, gl_texmgr.h, glquake.h, image.h, input.h, keys.h, mathlib.h,
menu.h, modelgen.h, net.h, net_dgrm.h, net_loop.h, net_sdlnet.h, net_udp.h,
net_wins.h, platform.h, pr_comp.h, progdefs.h, progs.h, protocol.h, quakedef.h,
render.h, resource.h, sbar.h, screen.h, server.h, sound.h, spritegn.h, sys.h,
vid.h, view.h, wad.h, world.h, zone.h: added include guards to the headers.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@84 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-02-21 00:01:08 +00:00
# ifndef _QUAKE_INPUT_H
# define _QUAKE_INPUT_H
2010-02-15 23:26:55 +00:00
// input.h -- external (non-keyboard) input devices
void IN_Init ( void ) ;
void IN_Shutdown ( void ) ;
void IN_Commands ( void ) ;
// oportunity for devices to stick commands on the script buffer
// mouse moved by dx and dy pixels
2018-05-01 00:35:14 +00:00
void IN_MouseMotion ( int dx , int dy , int wx , int wy ) ;
2010-02-15 23:26:55 +00:00
2011-12-16 14:11:37 +00:00
void IN_SendKeyEvents ( void ) ;
// used as a callback for Sys_SendKeyEvents() by some drivers
2014-09-23 19:10:02 +00:00
void IN_UpdateInputMode ( void ) ;
// do stuff if input mode (text/non-text) changes matter to the keyboard driver
2012-10-21 11:33:10 +00:00
2010-02-15 23:26:55 +00:00
void IN_Move ( usercmd_t * cmd ) ;
// add additional movement on top of the keyboard move cmd
void IN_ClearStates ( void ) ;
// restores all button and position states to defaults
2018-05-01 00:35:14 +00:00
// spike - called whenever mouse focus etc has changed (including console toggled). this is optional, but there's still a number of blocking commands, like connect
// doing all the mode, state, etc checks in one place ensures that they're consistent, regardless of what else is happening.
void IN_UpdateGrabs ( void ) ;
bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h,
d_ifacea.h, draw.h, gl_texmgr.h, glquake.h, image.h, input.h, keys.h, mathlib.h,
menu.h, modelgen.h, net.h, net_dgrm.h, net_loop.h, net_sdlnet.h, net_udp.h,
net_wins.h, platform.h, pr_comp.h, progdefs.h, progs.h, protocol.h, quakedef.h,
render.h, resource.h, sbar.h, screen.h, server.h, sound.h, spritegn.h, sys.h,
vid.h, view.h, wad.h, world.h, zone.h: added include guards to the headers.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@84 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-02-21 00:01:08 +00:00
# endif /* _QUAKE_INPUT_H */