#include <TInputDeviceMouse.h>
Public Types | |
| enum | : Doodad { BUTTON_1 = 0x30001 , BUTTON_2 = 0x30002 , BUTTON_3 = 0x30003 , BUTTON_4 = 0x30004 , BUTTON_5 = 0x30005 , BUTTON_6 = 0x30006 , BUTTON_7 = 0x30007 , BUTTON_8 = 0x30008 , BUTTON_WHEEL_FORWARD = 0x30009 , BUTTON_WHEEL_BACKWARD = 0x3000A , AXIS_CURSOR = 0x3000B , AXIS_WHEEL = 0x3000C } |
Public Types inherited from TInputDevice | |
| using | EventEmitter = TInputInterface::EventEmitter |
| using | Doodad = TINT |
Public Types inherited from TObject | |
| enum | { IsTObject = TTRUE } |
Public Member Functions | |
| TDECLARE_CLASS (TInputDeviceMouse, TInputDevice) | |
| TInputDeviceMouse () | |
| ~TInputDeviceMouse () | |
| virtual TBOOL | GetDoodadProperties (Doodad a_iDoodad, TInputDevice::DoodadProperties &props) const override |
| virtual const TCHAR * | GetButtonFromDoodad (Doodad a_iDoodad) const override |
Public Member Functions inherited from TInputDevice | |
| TDECLARE_CLASS (TInputDevice, TObject) | |
| TInputDevice () | |
| ~TInputDevice ()=default | |
| virtual TBOOL | Acquire ()=0 |
| virtual TBOOL | Unacquire ()=0 |
| virtual void | Release ()=0 |
| virtual void | Update (TFLOAT deltaTime)=0 |
| virtual TBOOL | Flush () |
| virtual TINT | ProcessEvents (EventEmitter &emitter, TFLOAT deltaTime)=0 |
| virtual TINT | GetButtonCount () const =0 |
| virtual TINT | GetAxisCount () const =0 |
| virtual TBOOL | StartRepeat (Doodad a_iDoodad, TFLOAT a_fFirstRepeatTime, TFLOAT a_fRepeatTime) |
| virtual void | StopRepeat (Doodad a_iDoodad) |
| virtual void | StopAllRepeats () |
| virtual TBOOL | IsForceFeedbackDevice () |
| virtual TBOOL | IsDown (Doodad a_iDoodad) const =0 |
| virtual TINT | GetAxisInt (Doodad a_iDoodad, TINT axis) const =0 |
| virtual TINT | GetAxisInt2 (Doodad a_iDoodad, TINT axis) const |
| virtual TFLOAT | GetAxisFloat (Doodad a_iDoodad, TINT axis) const =0 |
| virtual TFLOAT | GetAxisFloat2 (Doodad a_iDoodad, TINT axis) const |
| virtual TBOOL | IsEnabled () const =0 |
| virtual void | ThrowRepeatEvent (EventEmitter &emitter, RepeatInfo *repeatInfo, TFLOAT deltaTime) |
| TBOOL | IsAcquired () const |
| void | SetAcquired (TBOOL a_bAcquired) |
| TInputInterface * | GetInputInterface () |
| void | SetInputInterface (TInputInterface *a_pInterface) |
Public Member Functions inherited from TObject | |
| virtual Toshi::TClass * | GetClass () |
| virtual void | Delete () |
| virtual | ~TObject () |
| TBOOL | IsExactly (TClass *a_pClass) |
| TBOOL | IsA (TClass *a_pClass) |
Public Member Functions inherited from TNodeList< T >::TNode | |
| constexpr | TNode () |
| constexpr | TNode (const TNode &a_rcNode) |
| TNode (TNode &&a_rNode) | |
| T * | Next () const |
| T * | Prev () const |
| void | Remove () |
| void | SetList (TNodeList *list) |
| TNodeList * | GetList () const |
| TBOOL | IsLinked () const |
Additional Inherited Members | |
Static Public Member Functions inherited from TInputDevice | |
| static TInputDevice ** | GetRegisteredDevices () |
| static TUINT | GetNumRegisteredDevices () |
Static Public Member Functions inherited from TObject | |
| static Toshi::TObject * | CreateTObject () |
| static Toshi::TObject * | CreateTObjectInPlace (void *a_pPtr) |
| static void | InitialiseClass () |
| static void | DeinitialiseClass () |
| static TFORCEINLINE TClass * | GetClassStatic () |
Static Public Attributes inherited from TInputDevice | |
| static constexpr TINT | INPUT_DEVICE_MOUSE_BUTTONS = 3 |
| static constexpr TINT | INPUT_DEVICE_MOUSE_WHEEL = 4 |
Static Public Attributes inherited from TObject | |
| static constexpr Toshi::TClass * | PARENTCLASS = TNULL |
| static constinit Toshi::TClass | ms_oClass = Toshi::TClass( "TObject", TObject::CreateTObject, TObject::CreateTObjectInPlace, TObject::InitialiseClass, TObject::DeinitialiseClass, 0, 2, sizeof( TObject ), alignof( TObject ) ) |
Protected Member Functions inherited from TInputDevice | |
| TINT | ProcessRepeats (EventEmitter &a_rEmitter, TFLOAT a_fDeltaTime) |
Protected Attributes inherited from TInputDevice | |
| TUINT | m_uiDeviceIndex |
| TArray< RepeatInfo > | m_Repeats |
| TArray< void * > | m_Array2 |
| TBOOL | m_bUnknown |
| TBOOL | m_bIsAcquired |
| TInputInterface * | m_pInputInterface |
Protected Attributes inherited from TNodeList< T >::TNode | |
| friend | TNodeList |
| TNodeList * | m_pList |
| T * | m_pNext |
| T * | m_pPrev |
Static Protected Attributes inherited from TInputDevice | |
| static constexpr TUINT | MAX_DEVICE_COUNT = 14 |
| static TInputDevice * | s_aDevices [MAX_DEVICE_COUNT] |
| static TUINT | s_uiDeviceCount |
Definition at line 17 of file TInputDeviceMouse.h.
| anonymous enum : Doodad |
| Enumerator | |
|---|---|
| BUTTON_1 | |
| BUTTON_2 | |
| BUTTON_3 | |
| BUTTON_4 | |
| BUTTON_5 | |
| BUTTON_6 | |
| BUTTON_7 | |
| BUTTON_8 | |
| BUTTON_WHEEL_FORWARD | |
| BUTTON_WHEEL_BACKWARD | |
| AXIS_CURSOR | |
| AXIS_WHEEL | |
Definition at line 23 of file TInputDeviceMouse.h.
| TInputDeviceMouse::TInputDeviceMouse | ( | ) |
Definition at line 15 of file TInputDeviceMouse.cpp.
| TInputDeviceMouse::~TInputDeviceMouse | ( | ) |
Definition at line 20 of file TInputDeviceMouse.cpp.
Implements TInputDevice.
Definition at line 51 of file TInputDeviceMouse.cpp.
|
overridevirtual |
Implements TInputDevice.
Definition at line 25 of file TInputDeviceMouse.cpp.
| TInputDeviceMouse::TDECLARE_CLASS | ( | TInputDeviceMouse | , |
| TInputDevice | ) |