92 HTouchInfo(
float x,
float y,
float timestamp,
int taps,
int ident,
bool active =
true)
95 Init(x,y,timestamp,taps,ident,active);
110 void Init(
float x = 0.0f,
float y = 0.0f,
float timestamp = 0.0f,
int taps = 0,
int ident = 0,
bool active =
true)
114 m_timestamp = timestamp;
153 HTouchInfo *AddTouch(
float x,
float y,
float timestamp,
int taps, MVO_POINTER_SIZED_UINT ident);
159 void ClearTouchActivity();
169 bool RemoveTouch(MVO_POINTER_SIZED_UINT ident);
183 int GetTouches(
HTouchInfo **touches,
int maxtouches,
bool activeOnly =
false);
191 HTouchInfo *GetTouch(
int index,
bool activeOnly =
false);
194 unsigned int m_ActiveTouches;
195 vlist_s *m_TouchList;
217 #define MVO_CONTROL 1<<1
220 #define MVO_SHIFT 1<<2
226 #define MVO_LBUTTON 1<<4
229 #define MVO_MBUTTON 1<<5
232 #define MVO_RBUTTON 1<<6
235 #define MVO_RIGHT_CONTROL 1<<7
238 #define MVO_RIGHT_SHIFT 1<<8
241 #define MVO_RIGHT_ALT 1<<9
244 #define MVO_LEFT_CONTROL 1<<10
247 #define MVO_LEFT_SHIFT 1<<11
250 #define MVO_LEFT_ALT 1<<12
253 #define MVO_LEFT_ARROW 1<<13
256 #define MVO_UP_ARROW 1<<14
259 #define MVO_RIGHT_ARROW 1<<15
262 #define MVO_DOWN_ARROW 1<<16
265 #define MVO_JOYSTICK_BUTTON_1 1<<17
268 #define MVO_JOYSTICK_BUTTON_2 1<<18
271 #define MVO_JOYSTICK_BUTTON_3 1<<19
274 #define MVO_JOYSTICK_BUTTON_4 1<<20
277 #define MVO_JOYSTICK_BUTTON_5 1<<21
280 #define MVO_JOYSTICK_BUTTON_6 1<<22
283 #define MVO_JOYSTICK_BUTTON_7 1<<23
286 #define MVO_JOYSTICK_BUTTON_8 1<<24
289 static const int MAX_TOUCHES = 10;
292 bool Control()
const {
return (m_flags & MVO_CONTROL) != 0; }
293 bool Shift()
const {
return (m_flags & MVO_SHIFT) != 0; }
294 bool Alt()
const {
return (m_flags & MVO_ALT) != 0; }
295 bool LeftAlt()
const {
return (m_flags & MVO_LEFT_ALT) != 0; }
296 bool LeftControl()
const {
return (m_flags & MVO_LEFT_CONTROL) != 0; }
297 bool LeftShift()
const {
return (m_flags & MVO_LEFT_SHIFT) != 0; }
298 bool RightAlt()
const {
return (m_flags & MVO_RIGHT_ALT) != 0; }
299 bool RightControl()
const {
return (m_flags & MVO_RIGHT_CONTROL) != 0; }
300 bool RightShift()
const {
return (m_flags & MVO_RIGHT_SHIFT) != 0; }
301 bool LButton()
const {
return (m_flags & MVO_LBUTTON) != 0; }
302 bool MButton()
const {
return (m_flags & MVO_MBUTTON) != 0; }
303 bool RButton()
const {
return (m_flags & MVO_RBUTTON) != 0; }
304 bool LeftArrow()
const {
return (m_flags & MVO_LEFT_ARROW) != 0; }
305 bool UpArrow()
const {
return (m_flags & MVO_UP_ARROW) != 0; }
306 bool RightArrow()
const {
return (m_flags & MVO_RIGHT_ARROW) != 0; }
307 bool DownArrow()
const {
return (m_flags & MVO_DOWN_ARROW) != 0; }
320 unsigned int GetChar ()
const {
return m_Char; };
348 void SetPoint(
HEventType NewType,
int x,
int y,
unsigned int NewFlags);
359 void SetPixelPos(
HEventType NewType,
const HPoint& NewPoint,
unsigned int NewFlags);
371 void SetWindowPos(
HEventType NewType,
const HPoint& NewPoint,
unsigned int NewFlags);
382 void SetWorldPos(
HEventType NewType,
const HPoint& NewPoint,
unsigned int NewFlags);
392 void SetViewpointPos(
HEventType NewType,
const HPoint& NewPoint,
unsigned int NewFlags);
403 void SetKey(
HEventType NewType,
unsigned int nChar,
unsigned int nRepCnt,
unsigned int NewFlags);
410 void SetTimer(
HEventType NewType,
unsigned int nIDEvent);
416 void SetMouseWheelDelta(
int NewWheelDelta);
443 unsigned int m_RepCount;
444 unsigned int m_TimerId;
447 unsigned int m_flags;
bool RightAlt() const
Definition: HEventInfo.h:298
unsigned int GetCharRepCount() const
Definition: HEventInfo.h:322
bool RButton() const
Definition: HEventInfo.h:303
float m_timestamp
Definition: HEventInfo.h:123
The middle mouse button is up.
Definition: HEventInfo.h:42
float m_y
Definition: HEventInfo.h:122
The left mouse button was double-clicked.
Definition: HEventInfo.h:39
bool LeftControl() const
Definition: HEventInfo.h:296
void Init(float x=0.0f, float y=0.0f, float timestamp=0.0f, int taps=0, int ident=0, bool active=true)
Definition: HEventInfo.h:110
The mouse wheel has moved.
Definition: HEventInfo.h:51
The mouse cursor has moved.
Definition: HEventInfo.h:49
bool LeftShift() const
Definition: HEventInfo.h:297
int GetActiveTouchCount()
Definition: HEventInfo.h:172
A set of Rotation values from a 3D Mouse/Joystick.
Definition: HEventInfo.h:64
The left mouse button is up.
Definition: HEventInfo.h:38
bool RightControl() const
Definition: HEventInfo.h:299
self-explanatory
Definition: HEventInfo.h:55
bool m_bActive
Definition: HEventInfo.h:125
A touch down event has occured.
Definition: HEventInfo.h:67
void SetType(HEventType NewType)
Definition: HEventInfo.h:333
bool LeftAlt() const
Definition: HEventInfo.h:295
bool MButton() const
Definition: HEventInfo.h:302
No event ooccurred.
Definition: HEventInfo.h:35
const HPoint & GetMouseWindowPos() const
Definition: HEventInfo.h:313
bool UpArrow() const
Definition: HEventInfo.h:305
bool Control() const
Definition: HEventInfo.h:292
The left mouse button was pressed.
Definition: HEventInfo.h:37
The middle mouse button was pressed.
Definition: HEventInfo.h:41
The mouse wheel was scrolled down.
Definition: HEventInfo.h:53
int GetMouseWheelDelta() const
Definition: HEventInfo.h:430
The right mouse button was double-clicked.
Definition: HEventInfo.h:47
HTouchInfo()
Definition: HEventInfo.h:98
unsigned int GetFlags() const
Definition: HEventInfo.h:329
The right mouse button is up.
Definition: HEventInfo.h:46
unsigned int GetChar() const
Definition: HEventInfo.h:320
const HPoint & GetJoystickTranslation() const
Definition: HEventInfo.h:317
const HPoint & GetJoystickRotation() const
Definition: HEventInfo.h:316
bool Shift() const
Definition: HEventInfo.h:293
bool RightShift() const
Definition: HEventInfo.h:300
int m_taps
Definition: HEventInfo.h:124
The HPoint class is the data type of a three-dimensional point.
Definition: HGlobals.h:121
float m_x
Definition: HEventInfo.h:121
A key on the keyboard was pressed.
Definition: HEventInfo.h:57
The HBaseView class defines and manages a view of model information.
Definition: HBaseView.h:332
The HTouchInfo class encapsulates touch events.
Definition: HEventInfo.h:80
A general selection event.
Definition: HEventInfo.h:61
bool LeftArrow() const
Definition: HEventInfo.h:304
A key on the keyboard was released.
Definition: HEventInfo.h:58
bool LButton() const
Definition: HEventInfo.h:301
const HPoint & GetMousePixelPos() const
Definition: HEventInfo.h:312
const HPoint & GetMouseViewpointPos() const
Definition: HEventInfo.h:315
The right mouse button was pressed.
Definition: HEventInfo.h:45
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:207
const HPoint & GetMouseWorldPos() const
Definition: HEventInfo.h:314
The mouse wheel was scrolled up.
Definition: HEventInfo.h:52
bool Alt() const
Definition: HEventInfo.h:294
HEventType GetType() const
Definition: HEventInfo.h:337
A touch up event has occured.
Definition: HEventInfo.h:68
void SetFlags(int flags)
Definition: HEventInfo.h:423
The middle mouse button was double-clicked.
Definition: HEventInfo.h:43
HEventType
Definition: HEventInfo.h:33
The HTouchManager class stores and manages touch input.
Definition: HEventInfo.h:135
A button press from a 3D Mouse/Joystick.
Definition: HEventInfo.h:65
MVO_POINTER_SIZED_UINT m_id
Definition: HEventInfo.h:126
HTouchInfo(float x, float y, float timestamp, int taps, int ident, bool active=true)
Definition: HEventInfo.h:92
A touch move event has occured.
Definition: HEventInfo.h:69
bool DownArrow() const
Definition: HEventInfo.h:307
unsigned int GetTimerId() const
Definition: HEventInfo.h:323
A 3D Translation vector from a 3D Mouse/Joystick.
Definition: HEventInfo.h:63
HBaseView * GetView() const
Definition: HEventInfo.h:310
bool RightArrow() const
Definition: HEventInfo.h:306