IInput: Difference between revisions
Jump to navigation
Jump to search
m (Added categories) |
TomEdwards (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
'''<code>IInput</code>''' is a client [[interface]] that packages user input from keyboards, mice and joysticks/gamepads into [[usercmd]]s for transmission to the server. It also handles [[third-person camera]]s. | |||
== Implementation == | |||
<source lang=cpp>class CMyInput : public CInput | |||
{ | |||
}; | |||
// For mod access | |||
static CMyInput g_Input; | |||
[[ | // For engine access | ||
IInput* input = (IInput*)&g_Input;</source> | |||
== See also == | |||
* <code>[[CInput]]</code>, Valve's basic <code>IInput</code> implementation | |||
[[Category:Interfaces]] |
Revision as of 10:01, 3 August 2009
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 basicIInput
implementation