IInput

From Valve Developer Community
Revision as of 10:01, 3 August 2009 by TomEdwards (talk | contribs)
Jump to navigation Jump to search

IInput is a client interface that packages user input from keyboards, mice and joysticks/gamepads into usercmds for transmission to the server. It also handles third-person cameras.

Implementation

class CMyInput : public CInput
{
};

// For mod access
static CMyInput g_Input;

// For engine access
IInput* input = (IInput*)&g_Input;

See also

  • CInput, Valve's basic IInput implementation