Blender V2.61 - r43446
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes

SCA_IInputDevice Class Reference

#include <SCA_IInputDevice.h>

Inheritance diagram for SCA_IInputDevice:
Inheritance graph
[legend]

List of all members.

Public Types

enum  KX_EnumInputs {
  KX_NOKEY = 0, KX_TIMER0, KX_TIMER1, KX_TIMER2,
  KX_KEYBD, KX_RAWKEYBD, KX_REDRAW, KX_INPUTCHANGE,
  KX_QFULL, KX_WINFREEZE, KX_WINTHAW, KX_WINCLOSE = 14,
  KX_WINQUIT, KX_Q_FIRSTTIME, KX_BEGINKEY = 12, 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_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_PADSLASHKEY,
  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_F13KEY, KX_F14KEY, KX_F15KEY, KX_F16KEY,
  KX_F17KEY, KX_F18KEY, KX_F19KEY, 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_WHEELUPMOUSE,
  KX_WHEELDOWNMOUSE, KX_MOUSEX, KX_MOUSEY, KX_ENDMOUSE,
  KX_MAX_KEYS
}

Public Member Functions

 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 int GetNumJustEvents ()
virtual void HookEscape ()
virtual void NextFrame ()

Protected Member Functions

void ClearStatusTable (int tableid)

Protected Attributes

SCA_InputEvent m_eventStatusTables [2][SCA_IInputDevice::KX_MAX_KEYS]
int m_currentTable

Detailed Description

Definition at line 65 of file SCA_IInputDevice.h.


Member Enumeration Documentation

Enumerator:
KX_NOKEY 
KX_TIMER0 
KX_TIMER1 
KX_TIMER2 
KX_KEYBD 
KX_RAWKEYBD 
KX_REDRAW 
KX_INPUTCHANG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F2KEY 
KX_F3KEY 
KX_F4KEY 
KX_F5KEY 
KX_F6KEY 
KX_F7KEY 
KX_F8KEY 
KX_F9KEY 
KX_F10KEY 
KX_F11KEY 
KX_F12KEY 
KX_F13KEY 
KX_F14KEY 
KX_F15KEY 
KX_F16KEY 
KX_F17KEY 
KX_F18KEY 
KX_F19KEY 
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_WHEELUPMOUSE 
KX_WHEELDOWNMOUSE 
KX_MOUSEX 
KX_MOUSEY 
KX_ENDMOUSE 
KX_MAX_KEYS 

Definition at line 74 of file SCA_IInputDevice.h.


Constructor & Destructor Documentation

SCA_IInputDevice::SCA_IInputDevice ( )

Definition at line 36 of file SCA_IInputDevice.cpp.

References ClearStatusTable().

SCA_IInputDevice::~SCA_IInputDevice ( ) [virtual]

Definition at line 46 of file SCA_IInputDevice.cpp.


Member Function Documentation

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

Definition at line 55 of file SCA_IInputDevice.cpp.

References i, KX_MAX_KEYS, SCA_InputEvent::KX_NO_INPUTSTATUS, and m_eventStatusTables.

Referenced by SCA_IInputDevice().

const SCA_InputEvent & SCA_IInputDevice::GetEventValue ( SCA_IInputDevice::KX_EnumInputs  inputcode) [virtual]
int SCA_IInputDevice::GetNumActiveEvents ( ) [virtual]

Count active events(active and just_activated)

Definition at line 71 of file SCA_IInputDevice.cpp.

References i, SCA_InputEvent::KX_ACTIVE, SCA_InputEvent::KX_JUSTACTIVATED, KX_MAX_KEYS, m_currentTable, and m_eventStatusTables.

int SCA_IInputDevice::GetNumJustEvents ( ) [virtual]

Get the number of ramping events (just_activated, just_released)

Definition at line 90 of file SCA_IInputDevice.cpp.

References i, SCA_InputEvent::KX_JUSTACTIVATED, SCA_InputEvent::KX_JUSTRELEASED, KX_MAX_KEYS, m_currentTable, and m_eventStatusTables.

void SCA_IInputDevice::HookEscape ( ) [virtual]

Reimplemented in KX_BlenderKeyboardDevice, and GPC_KeyboardDevice.

Definition at line 50 of file SCA_IInputDevice.cpp.

References assert.

Referenced by SCA_KeyboardSensor::SCA_KeyboardSensor().

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

Member Data Documentation

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

The documentation for this class was generated from the following files: