#include "quakedef.h"
#include "winquake.h"
-//#include "dosisms.h"
#include <dinput.h>
*/
void IN_Shutdown (void)
{
-// usingmouse = false;
IN_DeactivateMouse ();
IN_ShowMouse ();
*/
void IN_MouseMove (usercmd_t *cmd)
{
- int i, mx, my, mouselook = (in_mlook.state & 1) || freelook.integer;
+ int i, mx, my;
DIDEVICEOBJECTDATA od;
DWORD dwElements;
HRESULT hr;
/* Unable to read data or no data available */
if (FAILED(hr) || dwElements == 0)
- {
break;
- }
/* Look at the element to see what happened */
*/
void IN_Move (usercmd_t *cmd)
{
- if (ActiveApp && !Minimized)
+ if (vid_activewindow && !vid_hidden)
{
IN_MouseMove (cmd);
IN_JoyMove (cmd);
*/
void IN_ClearStates (void)
{
-
if (mouseactive)
{
mx_accum = 0;
int numdevs;
JOYCAPS jc;
MMRESULT mmr;
+ mmr = 0;
// assume no joystick
joy_avail = false;
else
{
// read error occurred
- // turning off the joystick seems too harsh for 1 read error,\
+ // turning off the joystick seems too harsh for 1 read error,
// but what should be done?
- // Con_Printf ("IN_ReadJoystick: no response\n");
- // joy_avail = false;
return false;
}
}
}
}
}
+