Blender V2.61 - r43446
Public Member Functions

KX_BlenderMouseDevice Class Reference

#include <KX_BlenderMouseDevice.h>

Inheritance diagram for KX_BlenderMouseDevice:
Inheritance graph
[legend]

List of all members.

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 ()

Detailed Description

Definition at line 41 of file KX_BlenderMouseDevice.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

bool KX_BlenderMouseDevice::ConvertBlenderEvent ( unsigned short  incode,
short  val 
) [virtual]
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.


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