Blender V2.61 - r43446
|
#include <KX_BlenderMouseDevice.h>
Public Member Functions | |
KX_BlenderMouseDevice () | |
virtual | ~KX_BlenderMouseDevice () |
virtual bool | IsPressed (SCA_IInputDevice::KX_EnumInputs inputcode) |
virtual bool | ConvertBlenderEvent (unsigned short incode, short val) |
virtual void | NextFrame () |
Definition at line 41 of file KX_BlenderMouseDevice.h.
KX_BlenderMouseDevice::KX_BlenderMouseDevice | ( | ) |
Definition at line 40 of file KX_BlenderMouseDevice.cpp.
KX_BlenderMouseDevice::~KX_BlenderMouseDevice | ( | ) | [virtual] |
Definition at line 44 of file KX_BlenderMouseDevice.cpp.
bool KX_BlenderMouseDevice::ConvertBlenderEvent | ( | unsigned short | incode, |
short | val | ||
) | [virtual] |
ConvertBlenderEvent translates blender mouse events into ketsji kbd events extra event information is stored, like ramp-mode (just released/pressed)
Implements BL_BlenderInputDevice.
Definition at line 114 of file KX_BlenderMouseDevice.cpp.
References KM_PRESS, KM_RELEASE, SCA_InputEvent::KX_ACTIVE, SCA_IInputDevice::KX_BEGINMOUSE, SCA_IInputDevice::KX_ENDMOUSE, SCA_IInputDevice::KX_ENDMOUSEBUTTONS, SCA_InputEvent::KX_JUSTACTIVATED, SCA_InputEvent::KX_JUSTRELEASED, SCA_InputEvent::KX_NO_INPUTSTATUS, SCA_IInputDevice::m_currentTable, SCA_IInputDevice::m_eventStatusTables, SCA_InputEvent::m_eventval, SCA_InputEvent::m_status, BL_BlenderInputDevice::ToNative(), and simple_enum_gen::val.
Referenced by StartKetsjiShell().
bool KX_BlenderMouseDevice::IsPressed | ( | SCA_IInputDevice::KX_EnumInputs | inputcode | ) | [virtual] |
IsPressed gives boolean information about mouse status, true if pressed, false if not
Implements BL_BlenderInputDevice.
Definition at line 53 of file KX_BlenderMouseDevice.cpp.
References SCA_InputEvent::KX_ACTIVE, SCA_InputEvent::KX_JUSTACTIVATED, SCA_IInputDevice::m_currentTable, SCA_IInputDevice::m_eventStatusTables, and SCA_InputEvent::m_status.
void KX_BlenderMouseDevice::NextFrame | ( | ) | [virtual] |
NextFrame toggles currentTable with previousTable, and copy relevant event information from previous to current (pressed keys need to be remembered)
Reimplemented from SCA_IInputDevice.
Definition at line 71 of file KX_BlenderMouseDevice.cpp.
References SCA_InputEvent::KX_ACTIVE, SCA_IInputDevice::KX_BEGINMOUSE, SCA_IInputDevice::KX_ENDMOUSE, SCA_IInputDevice::KX_ENDMOUSEBUTTONS, SCA_InputEvent::KX_JUSTACTIVATED, SCA_InputEvent::KX_JUSTRELEASED, SCA_InputEvent::KX_NO_INPUTSTATUS, SCA_IInputDevice::m_currentTable, SCA_IInputDevice::m_eventStatusTables, and SCA_InputEvent::m_status.