Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

SCA_IInputDevice Class Reference

#include <SCA_IInputDevice.h>

Inheritance diagram for SCA_IInputDevice:

BL_BlenderInputDevice KX_GlutInputDevice SDLInputDevice KX_BlenderKeyboardDevice KX_BlenderMouseDevice GlutKeyboardDevice SDLKeyboardDevice List of all members.

Public Types

enum  KX_EnumInputs {
  KX_NOKEY = 0, KX_TIMER0, KX_TIMER1, KX_TIMER2,
  KX_TIMER3, KX_KEYBD, KX_RAWKEYBD, KX_REDRAW,
  KX_INPUTCHANGE, KX_QFULL, KX_WINFREEZE, KX_WINTHAW,
  KX_WINCLOSE, KX_WINQUIT, KX_Q_FIRSTTIME, KX_BEGINKEY,
  KX_RETKEY = 13, KX_SPACEKEY = 32, KX_PADASTERKEY = 42, KX_COMMAKEY = 44,
  KX_MINUSKEY = 45, KX_PERIODKEY = 46, KX_ZEROKEY = 48, KX_ONEKEY,
  KX_TWOKEY, KX_THREEKEY, KX_FOURKEY, KX_FIVEKEY,
  KX_SIXKEY, KX_SEVENKEY, KX_EIGHTKEY, KX_NINEKEY,
  KX_AKEY = 97, KX_BKEY, KX_CKEY, KX_DKEY,
  KX_EKEY, KX_FKEY, KX_GKEY, KX_HKEY,
  KX_IKEY, KX_JKEY, KX_KKEY, KX_LKEY,
  KX_MKEY, KX_NKEY, KX_OKEY, KX_PKEY,
  KX_QKEY, KX_RKEY, KX_SKEY, KX_TKEY,
  KX_UKEY, KX_VKEY, KX_WKEY, KX_XKEY,
  KX_YKEY, KX_ZKEY, KX_CAPSLOCKKEY, KX_LEFTCTRLKEY,
  KX_LEFTALTKEY, KX_RIGHTALTKEY, KX_RIGHTCTRLKEY, KX_RIGHTSHIFTKEY,
  KX_LEFTSHIFTKEY, KX_ESCKEY, KX_TABKEY, KX_LINEFEEDKEY,
  KX_BACKSPACEKEY, KX_DELKEY, KX_SEMICOLONKEY, KX_QUOTEKEY,
  KX_ACCENTGRAVEKEY, KX_VIRGULEKEY, KX_SLASHKEY, KX_BACKSLASHKEY,
  KX_EQUALKEY, KX_LEFTBRACKETKEY, KX_RIGHTBRACKETKEY, KX_LEFTARROWKEY,
  KX_DOWNARROWKEY, KX_RIGHTARROWKEY, KX_UPARROWKEY, KX_PAD2,
  KX_PAD4, KX_PAD6, KX_PAD8, KX_PAD1,
  KX_PAD3, KX_PAD5, KX_PAD7, KX_PAD9,
  KX_PADPERIOD, KX_PADVIRGULEKEY, KX_PAD0, KX_PADMINUS,
  KX_PADENTER, KX_PADPLUSKEY, KX_F1KEY, KX_F2KEY,
  KX_F3KEY, KX_F4KEY, KX_F5KEY, KX_F6KEY,
  KX_F7KEY, KX_F8KEY, KX_F9KEY, KX_F10KEY,
  KX_F11KEY, KX_F12KEY, KX_PAUSEKEY, KX_INSERTKEY,
  KX_HOMEKEY, KX_PAGEUPKEY, KX_PAGEDOWNKEY, KX_ENDKEY,
  KX_BEGINMOUSE, KX_BEGINMOUSEBUTTONS, KX_LEFTMOUSE, KX_MIDDLEMOUSE,
  KX_RIGHTMOUSE, KX_ENDMOUSEBUTTONS, KX_MOUSEX, KX_MOUSEY,
  KX_ENDMOUSE, KX_MAX_KEYS
}

Public Methods

 SCA_IInputDevice ()
virtual ~SCA_IInputDevice ()
virtual bool IsPressed (SCA_IInputDevice::KX_EnumInputs inputcode) = 0
virtual const SCA_InputEventGetEventValue (SCA_IInputDevice::KX_EnumInputs inputcode)
virtual int GetNumActiveEvents ()
virtual void NextFrame ()

Protected Methods

void ClearStatusTable (int tableid)

Protected Attributes

SCA_InputEvent m_eventStatusTables [2][SCA_IInputDevice::KX_MAX_KEYS]
 m_eventStatusTables are two tables that contain current and previous status of all events. More...

int m_currentTable
 m_currentTable is index for m_keyStatusTable that toggle between 0 or 1. More...


Member Enumeration Documentation

enum SCA_IInputDevice::KX_EnumInputs
 

Enumeration values:
KX_NOKEY  
KX_TIMER0  
KX_TIMER1  
KX_TIMER2  
KX_TIMER3  
KX_KEYBD  
KX_RAWKEYBD  
KX_REDRAW  
KX_INPUTCHANGE  
KX_QFULL  
KX_WINFREEZE  
KX_WINTHAW  
KX_WINCLOSE  
KX_WINQUIT  
KX_Q_FIRSTTIME  
KX_BEGINKEY  
KX_RETKEY  
KX_SPACEKEY  
KX_PADASTERKEY  
KX_COMMAKEY  
KX_MINUSKEY  
KX_PERIODKEY  
KX_ZEROKEY  
KX_ONEKEY  
KX_TWOKEY  
KX_THREEKEY  
KX_FOURKEY  
KX_FIVEKEY  
KX_SIXKEY  
KX_SEVENKEY  
KX_EIGHTKEY  
KX_NINEKEY  
KX_AKEY  
KX_BKEY  
KX_CKEY  
KX_DKEY  
KX_EKEY  
KX_FKEY  
KX_GKEY  
KX_HKEY  
KX_IKEY  
KX_JKEY  
KX_KKEY  
KX_LKEY  
KX_MKEY  
KX_NKEY  
KX_OKEY  
KX_PKEY  
KX_QKEY  
KX_RKEY  
KX_SKEY  
KX_TKEY  
KX_UKEY  
KX_VKEY  
KX_WKEY  
KX_XKEY  
KX_YKEY  
KX_ZKEY  
KX_CAPSLOCKKEY  
KX_LEFTCTRLKEY  
KX_LEFTALTKEY  
KX_RIGHTALTKEY  
KX_RIGHTCTRLKEY  
KX_RIGHTSHIFTKEY  
KX_LEFTSHIFTKEY  
KX_ESCKEY  
KX_TABKEY  
KX_LINEFEEDKEY  
KX_BACKSPACEKEY  
KX_DELKEY  
KX_SEMICOLONKEY  
KX_QUOTEKEY  
KX_ACCENTGRAVEKEY  
KX_VIRGULEKEY  
KX_SLASHKEY  
KX_BACKSLASHKEY  
KX_EQUALKEY  
KX_LEFTBRACKETKEY  
KX_RIGHTBRACKETKEY  
KX_LEFTARROWKEY  
KX_DOWNARROWKEY  
KX_RIGHTARROWKEY  
KX_UPARROWKEY  
KX_PAD2  
KX_PAD4  
KX_PAD6  
KX_PAD8  
KX_PAD1  
KX_PAD3  
KX_PAD5  
KX_PAD7  
KX_PAD9  
KX_PADPERIOD  
KX_PADVIRGULEKEY  
KX_PAD0  
KX_PADMINUS  
KX_PADENTER  
KX_PADPLUSKEY  
KX_F1KEY  
KX_F2KEY  
KX_F3KEY  
KX_F4KEY  
KX_F5KEY  
KX_F6KEY  
KX_F7KEY  
KX_F8KEY  
KX_F9KEY  
KX_F10KEY  
KX_F11KEY  
KX_F12KEY  
KX_PAUSEKEY  
KX_INSERTKEY  
KX_HOMEKEY  
KX_PAGEUPKEY  
KX_PAGEDOWNKEY  
KX_ENDKEY  
KX_BEGINMOUSE  
KX_BEGINMOUSEBUTTONS  
KX_LEFTMOUSE  
KX_MIDDLEMOUSE  
KX_RIGHTMOUSE  
KX_ENDMOUSEBUTTONS  
KX_MOUSEX  
KX_MOUSEY  
KX_ENDMOUSE  
KX_MAX_KEYS  

Definition at line 61 of file SCA_IInputDevice.h.


Constructor & Destructor Documentation

SCA_IInputDevice::SCA_IInputDevice ( ) [inline]
 

Definition at line 52 of file SCA_IInputDevice.h.

SCA_IInputDevice::~SCA_IInputDevice ( ) [inline, virtual]
 

Definition at line 57 of file SCA_IInputDevice.h.


Member Function Documentation

void SCA_IInputDevice::ClearStatusTable ( int tableid ) [inline, protected]
 

Definition at line 247 of file SCA_IInputDevice.h.

Referenced by NextFrame(), and SCA_IInputDevice().

const SCA_InputEvent & SCA_IInputDevice::GetEventValue ( SCA_IInputDevice::KX_EnumInputs inputcode ) [inline, virtual]
 

Definition at line 255 of file SCA_IInputDevice.h.

Referenced by SCA_MouseSensor::Evaluate(), SCA_KeyboardSensor::Evaluate(), and SCA_MouseManager::NextFrame().

int SCA_IInputDevice::GetNumActiveEvents ( ) [inline, virtual]
 

Definition at line 260 of file SCA_IInputDevice.h.

virtual bool SCA_IInputDevice::IsPressed ( SCA_IInputDevice::KX_EnumInputs inputcode ) [pure virtual]
 

Reimplemented in BL_BlenderInputDevice, KX_BlenderKeyboardDevice, KX_BlenderMouseDevice, KX_GlutInputDevice, KX_GlutInputDevice, and SDLInputDevice.

Referenced by SCA_MouseManager::IsPressed().

void SCA_IInputDevice::NextFrame ( ) [inline, virtual]
 

Reimplemented in KX_BlenderKeyboardDevice, KX_BlenderMouseDevice, GlutKeyboardDevice, and SDLKeyboardDevice.

Definition at line 271 of file SCA_IInputDevice.h.

Referenced by SDLKeyboardDevice::NextFrame(), KX_BlenderMouseDevice::NextFrame(), KX_BlenderKeyboardDevice::NextFrame(), and GlutKeyboardDevice::NextFrame().


Member Data Documentation

int SCA_IInputDevice::m_currentTable [protected]
 

m_currentTable is index for m_keyStatusTable that toggle between 0 or 1.

Definition at line 245 of file SCA_IInputDevice.h.

SCA_InputEvent SCA_IInputDevice::m_eventStatusTables[2][SCA_IInputDevice::KX_MAX_KEYS] [protected]
 

m_eventStatusTables are two tables that contain current and previous status of all events.

Definition at line 241 of file SCA_IInputDevice.h.


The documentation for this class was generated from the following file:
Generated at Thu Feb 1 13:03:53 2001 for Ketsji Game Engine by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000