#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 } |
![]() | |
using | EventEmitter = TInputInterface::EventEmitter |
using | Doodad = TINT |
![]() | |
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 |
![]() | |
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) |
![]() | |
virtual Toshi::TClass * | GetClass () |
virtual void | Delete () |
virtual | ~TObject () |
TBOOL | IsExactly (TClass *a_pClass) |
TBOOL | IsA (TClass *a_pClass) |
![]() | |
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 TInputDevice ** | GetRegisteredDevices () |
static TUINT | GetNumRegisteredDevices () |
![]() | |
static Toshi::TObject * | CreateTObject () |
static Toshi::TObject * | CreateTObjectInPlace (void *a_pPtr) |
static void | InitialiseClass () |
static void | DeinitialiseClass () |
static TFORCEINLINE TClass * | GetClassStatic () |
![]() | |
static constexpr TINT | INPUT_DEVICE_MOUSE_BUTTONS = 3 |
static constexpr TINT | INPUT_DEVICE_MOUSE_WHEEL = 4 |
![]() | |
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 ) ) |
![]() | |
TINT | ProcessRepeats (EventEmitter &a_rEmitter, TFLOAT a_fDeltaTime) |
![]() | |
TUINT | m_uiDeviceIndex |
TArray< RepeatInfo > | m_Repeats |
TArray< void * > | m_Array2 |
TBOOL | m_bUnknown |
TBOOL | m_bIsAcquired |
TInputInterface * | m_pInputInterface |
![]() | |
friend | TNodeList |
TNodeList * | m_pList |
T * | m_pNext |
T * | m_pPrev |
![]() | |
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 | ) |