Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

gbinput::Server Class Reference

User Input, management, server class. More...

#include <server.h>

List of all members.

Public Types

enum  { NumAxes = 3, NumButtons = 3 }
 \enum Server constants. More...


Static Public Methods

Server Maintenance
int Init (HWND ihWnd, HINSTANCE ihInst)
 .

void Destroy ()
 .

int IsInitialized ()
 .

int Update ()
 Call once each loop.

int Acquire ()
 Call to acquire focus.

Keyboard
int KeyHit ()
 .

int KeyUp (int key)
 .

int KeyDown (int key)
 .

int KeyJustDown (int key)
 .

int KeyJustUp (int key)
 .

Mouse
int MouseMoved ()
 .

int MouseButtonHit ()
 .

float MouseAxis (int axis)
 .

int MouseButtonUp (int button)
 .

int MouseButtonDown (int button)
 .

int MouseButtonJustUp (int button)
 .

int MouseButtonJustDown (int button)
 .

int MouseInvert ()
 .

State input management
void ClearStates ()
 .

int AddState (State *pState)
 .

void RemoveState (State *pState)
 .


Detailed Description

User Input, management, server class.

Remarks:
Construct and call Init() to initialize the server. Acquire() needs to be called whenever the application gains/regains focus (in case the application was interrupted). Update() is called whenever the state of the mKeyboard needs to be determined. The "Just" versions of the input query functions determine if the state of the current update is true and the previous update is false.


Member Enumeration Documentation

anonymous enum
 

\enum Server constants.

Enumeration values:
NumAxes  Number of mouse movement directions.
NumButtons  Number of mouse buttons.


The documentation for this class was generated from the following files:
Generated on Mon Sep 2 14:52:33 2002 for GunBuster Engine by doxygen1.2.17