#include <TInputDeviceMouse_Win.h>
Public Member Functions | |
TDECLARE_CLASS (TInputDXDeviceMouse, TInputDeviceMouse) | |
TInputDXDeviceMouse () | |
virtual | ~TInputDXDeviceMouse () |
virtual TBOOL | Acquire () override |
virtual TBOOL | Unacquire () override |
virtual void | Release () override |
virtual void | Update (TFLOAT a_fDeltaTime) override |
virtual TBOOL | Flush () override |
virtual TINT | ProcessEvents (EventEmitter &a_rEmitter, TFLOAT a_fDeltaTime) override |
virtual TINT | GetButtonCount () const override |
virtual TINT | GetAxisCount () const override |
virtual TBOOL | IsDown (Doodad a_iDoodad) const override |
virtual TINT | GetAxisInt (Doodad a_iDoodad, TINT axis) const override |
virtual TFLOAT | GetAxisFloat (Doodad a_iDoodad, TINT axis) const override |
virtual TBOOL | IsEnabled () const override |
virtual TBOOL | Initialise () |
virtual TBOOL | Deinitialise () |
virtual void | RefreshDirect () |
virtual TBOOL | WasDown (Doodad a_iDoodad) const |
TBOOL const | BindToDIDevice (HWND a_hMainWindow, LPCDIDEVICEINSTANCEA a_poDeviceInstance, IDirectInputDevice8A *a_poDXInputDevice, TBOOL a_bExclusive) |
void | SetExclusive (HWND a_hWindow, TBOOL a_bExclusive) |
void | SetCurrentPosition (TINT a_iX, TINT a_iY) |
const DIDEVICEINSTANCEA & | GetDeviceInstance () const |
![]() | |
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 | StartRepeat (Doodad a_iDoodad, TFLOAT a_fFirstRepeatTime, TFLOAT a_fRepeatTime) |
virtual void | StopRepeat (Doodad a_iDoodad) |
virtual void | StopAllRepeats () |
virtual TBOOL | IsForceFeedbackDevice () |
virtual TINT | GetAxisInt2 (Doodad a_iDoodad, TINT axis) const |
virtual TFLOAT | GetAxisFloat2 (Doodad a_iDoodad, TINT axis) const |
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 | |
![]() | |
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 } |
![]() | |
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 7 of file TInputDeviceMouse_Win.h.
|
inline |
Definition at line 13 of file TInputDeviceMouse_Win.h.
|
inlinevirtual |
Definition at line 18 of file TInputDeviceMouse_Win.h.
|
overridevirtual |
Implements TInputDevice.
Definition at line 16 of file TInputDeviceMouse_Win.cpp.
TBOOL const TInputDXDeviceMouse::BindToDIDevice | ( | HWND | a_hMainWindow, |
LPCDIDEVICEINSTANCEA | a_poDeviceInstance, | ||
IDirectInputDevice8A * | a_poDXInputDevice, | ||
TBOOL | a_bExclusive ) |
Definition at line 360 of file TInputDeviceMouse_Win.cpp.
|
virtual |
Definition at line 301 of file TInputDeviceMouse_Win.cpp.
|
overridevirtual |
Reimplemented from TInputDevice.
Definition at line 91 of file TInputDeviceMouse_Win.cpp.
|
overridevirtual |
Implements TInputDevice.
Definition at line 200 of file TInputDeviceMouse_Win.cpp.
Implements TInputDevice.
Definition at line 233 of file TInputDeviceMouse_Win.cpp.
Implements TInputDevice.
Definition at line 215 of file TInputDeviceMouse_Win.cpp.
|
overridevirtual |
Implements TInputDevice.
Definition at line 195 of file TInputDeviceMouse_Win.cpp.
|
inline |
Definition at line 46 of file TInputDeviceMouse_Win.h.
|
virtual |
Definition at line 260 of file TInputDeviceMouse_Win.cpp.
Implements TInputDevice.
Definition at line 205 of file TInputDeviceMouse_Win.cpp.
|
overridevirtual |
Implements TInputDevice.
Definition at line 255 of file TInputDeviceMouse_Win.cpp.
|
overridevirtual |
Implements TInputDevice.
Definition at line 109 of file TInputDeviceMouse_Win.cpp.
|
virtual |
Definition at line 307 of file TInputDeviceMouse_Win.cpp.
|
overridevirtual |
Implements TInputDevice.
Definition at line 43 of file TInputDeviceMouse_Win.cpp.
Definition at line 352 of file TInputDeviceMouse_Win.cpp.
void TInputDXDeviceMouse::SetExclusive | ( | HWND | a_hWindow, |
TBOOL | a_bExclusive ) |
Definition at line 344 of file TInputDeviceMouse_Win.cpp.
TInputDXDeviceMouse::TDECLARE_CLASS | ( | TInputDXDeviceMouse | , |
TInputDeviceMouse | ) |
|
overridevirtual |
Implements TInputDevice.
Definition at line 36 of file TInputDeviceMouse_Win.cpp.
|
overridevirtual |
Implements TInputDevice.
Definition at line 52 of file TInputDeviceMouse_Win.cpp.
Definition at line 334 of file TInputDeviceMouse_Win.cpp.