#include <TInputInterface.h>
Definition at line 20 of file TInputInterface.h.
◆ EventEmitter
◆ EVENT_TYPE
Enumerator |
---|
EVENT_TYPE_GONE_DOWN | |
EVENT_TYPE_GONE_UP | |
EVENT_TYPE_REPEAT | |
EVENT_TYPE_VIRTUAL | |
EVENT_TYPE_MOVED | |
Definition at line 27 of file TInputInterface.h.
◆ TInputInterface()
TInputInterface::TInputInterface |
( |
| ) |
|
◆ ~TInputInterface()
TInputInterface::~TInputInterface |
( |
| ) |
|
◆ AcquireAll()
TBOOL TInputInterface::AcquireAll |
( |
| ) |
|
|
virtual |
Definition at line 63 of file TInputInterface.cpp.
64{
66
67 for ( auto it = m_DeviceList.Begin(); it != m_DeviceList.End(); ++it )
68 {
69 bResult &= it->Acquire();
70 }
71
72 return bResult;
73}
◆ AddDevice()
Definition at line 43 of file TInputInterface.cpp.
44{
45 if ( device !=
TNULL )
46 {
47 m_DeviceList.InsertTail( device );
49 }
50}
void SetInputInterface(TInputInterface *a_pInterface)
◆ Deinitialise()
virtual TBOOL TInputInterface::Deinitialise |
( |
| ) |
|
|
pure virtual |
◆ FlushAll()
TBOOL TInputInterface::FlushAll |
( |
| ) |
|
|
virtual |
Definition at line 89 of file TInputInterface.cpp.
90{
92
93 for ( auto it = m_DeviceList.Begin(); it != m_DeviceList.End(); ++it )
94 {
95 bResult &= it->Flush();
96 }
97
98 return bResult;
99}
◆ GetDeviceByIndex() [1/2]
Definition at line 17 of file TInputInterface.cpp.
18{
19 if ( m_DeviceList.Count() == 0 )
20 {
22 }
23
24 for ( auto it = m_DeviceList.Begin(); it != m_DeviceList.End(); ++it )
25 {
26 if ( it->GetClass()->IsA( a_pClass ) )
27 {
28 if ( a_uiIndex == 0 )
29 {
30 return it;
31 }
32 else
33 {
34 a_uiIndex -= 1;
35 }
36 }
37 }
38
40}
◆ GetDeviceByIndex() [2/2]
template<class C>
C * TInputInterface::GetDeviceByIndex |
( |
TUINT | a_uiIndex = 0 | ) |
|
|
inline |
Definition at line 100 of file TInputInterface.h.
101 {
104 return pDevice;
105 }
#define TSTATICCAST(POINTERTYPE, VALUE)
TInputDevice * GetDeviceByIndex(TClass *a_pClass, TUINT a_uiIndex)
◆ GetExclusiveMode()
TBOOL TInputInterface::GetExclusiveMode |
( |
| ) |
const |
|
virtual |
◆ GetInputEventEmitter()
◆ Initialise()
virtual TBOOL TInputInterface::Initialise |
( |
| ) |
|
|
pure virtual |
◆ ProcessEvents()
TINT TInputInterface::ProcessEvents |
( |
TFLOAT | a_fDeltaTime | ) |
|
|
virtual |
Definition at line 114 of file TInputInterface.cpp.
115{
116 TINT iNumProcessed = 0;
117
118 for ( auto it = m_DeviceList.Begin(); it != m_DeviceList.End(); ++it )
119 {
120 if ( it->IsAcquired() )
121 {
122 it->Update( a_fDeltaTime );
123 }
124 }
125
126 for ( auto it = m_DeviceList.Begin(); it != m_DeviceList.End(); ++it )
127 {
128 if ( it->IsAcquired() )
129 {
130 iNumProcessed += it->ProcessEvents( m_InputEventEmitter, a_fDeltaTime );
131 }
132 }
133
134 return iNumProcessed;
135}
◆ ReleaseAllDevices()
void TInputInterface::ReleaseAllDevices |
( |
| ) |
|
Definition at line 147 of file TInputInterface.cpp.
148{
149 for ( auto it = m_DeviceList.Begin(); it != m_DeviceList.End(); ++it )
150 {
151 it->Unacquire();
152 it->Release();
153 it->Remove();
154 delete it.Get();
155 }
156}
◆ RemoveDevice()
◆ SetExclusiveMode()
void TInputInterface::SetExclusiveMode |
( |
TBOOL | a_bIsExclusive | ) |
|
|
virtual |
◆ StopAllRepeats()
void TInputInterface::StopAllRepeats |
( |
| ) |
|
|
virtual |
Definition at line 138 of file TInputInterface.cpp.
139{
140 for ( auto it = m_DeviceList.Begin(); it != m_DeviceList.End(); ++it )
141 {
142 it->StopAllRepeats();
143 }
144}
◆ TDECLARE_CLASS()
◆ UnacquireAll()
TBOOL TInputInterface::UnacquireAll |
( |
| ) |
|
|
virtual |
Definition at line 76 of file TInputInterface.cpp.
77{
79
80 for ( auto it = m_DeviceList.Begin(); it != m_DeviceList.End(); ++it )
81 {
82 bResult &= it->Unacquire();
83 }
84
85 return bResult;
86}
The documentation for this class was generated from the following files: