Blender V2.61 - r43446
|
#include <SCA_IInputDevice.h>
Definition at line 65 of file SCA_IInputDevice.h.
Definition at line 74 of file SCA_IInputDevice.h.
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.
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] |
Definition at line 63 of file SCA_IInputDevice.cpp.
References m_currentTable, and m_eventStatusTables.
Referenced by SCA_KeyboardSensor::Evaluate(), SCA_MouseSensor::Evaluate(), and SCA_MouseManager::NextFrame().
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] |
Implemented in BL_BlenderInputDevice, KX_BlenderKeyboardDevice, KX_BlenderMouseDevice, GPC_KeyboardDevice, and GPC_MouseDevice.
Referenced by SCA_MouseManager::IsPressed().
void SCA_IInputDevice::NextFrame | ( | ) | [virtual] |
Reimplemented in KX_BlenderKeyboardDevice, KX_BlenderMouseDevice, GPC_KeyboardDevice, and GPC_MouseDevice.
Definition at line 109 of file SCA_IInputDevice.cpp.
References i, SCA_InputEvent::KX_ACTIVE, SCA_InputEvent::KX_JUSTACTIVATED, SCA_InputEvent::KX_JUSTRELEASED, KX_MAX_KEYS, SCA_InputEvent::KX_NO_INPUTSTATUS, m_currentTable, and m_eventStatusTables.
Referenced by KX_KetsjiEngine::NextFrame().
int SCA_IInputDevice::m_currentTable [protected] |
m_currentTable is index for m_keyStatusTable that toggle between 0 or 1
Definition at line 285 of file SCA_IInputDevice.h.
Referenced by KX_BlenderKeyboardDevice::ConvertBlenderEvent(), KX_BlenderMouseDevice::ConvertBlenderEvent(), GPC_KeyboardDevice::ConvertEvent(), GPC_MouseDevice::ConvertEvent(), GetEventValue(), GetNumActiveEvents(), GetNumJustEvents(), KX_BlenderMouseDevice::IsPressed(), GPC_MouseDevice::IsPressed(), KX_BlenderKeyboardDevice::IsPressed(), GPC_KeyboardDevice::NextFrame(), GPC_MouseDevice::NextFrame(), NextFrame(), KX_BlenderKeyboardDevice::NextFrame(), and KX_BlenderMouseDevice::NextFrame().
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 281 of file SCA_IInputDevice.h.
Referenced by ClearStatusTable(), KX_BlenderKeyboardDevice::ConvertBlenderEvent(), KX_BlenderMouseDevice::ConvertBlenderEvent(), GPC_KeyboardDevice::ConvertEvent(), GPC_MouseDevice::ConvertEvent(), GetEventValue(), GetNumActiveEvents(), GetNumJustEvents(), KX_BlenderMouseDevice::IsPressed(), GPC_MouseDevice::IsPressed(), KX_BlenderKeyboardDevice::IsPressed(), GPC_KeyboardDevice::NextFrame(), GPC_MouseDevice::NextFrame(), NextFrame(), KX_BlenderKeyboardDevice::NextFrame(), and KX_BlenderMouseDevice::NextFrame().