99 HTouchInfo(
float x,
float y,
float timestamp,
int taps,
int ident,
bool active =
true)
102 Init(x,y,timestamp,taps,ident,active);
117 void Init(
float x = 0.0f,
float y = 0.0f,
float timestamp = 0.0f,
int taps = 0,
int ident = 0,
bool active =
true)
121 m_timestamp = timestamp;
160 HTouchInfo *AddTouch(
float x,
float y,
float timestamp,
int taps, MVO_POINTER_SIZED_UINT ident);
166 void ClearTouchActivity();
176 bool RemoveTouch(MVO_POINTER_SIZED_UINT ident);
190 int GetTouches(
HTouchInfo **touches,
int maxtouches,
bool activeOnly =
false);
198 HTouchInfo *GetTouch(
int index,
bool activeOnly =
false);
202 vlist_s *m_TouchList;
224 #define MVO_CONTROL 1<<1
227 #define MVO_SHIFT 1<<2
233 #define MVO_LBUTTON 1<<4
236 #define MVO_MBUTTON 1<<5
239 #define MVO_RBUTTON 1<<6
242 #define MVO_RIGHT_CONTROL 1<<7
245 #define MVO_RIGHT_SHIFT 1<<8
248 #define MVO_RIGHT_ALT 1<<9
251 #define MVO_LEFT_CONTROL 1<<10
254 #define MVO_LEFT_SHIFT 1<<11
257 #define MVO_LEFT_ALT 1<<12
260 #define MVO_LEFT_ARROW 1<<13
263 #define MVO_UP_ARROW 1<<14
266 #define MVO_RIGHT_ARROW 1<<15
269 #define MVO_DOWN_ARROW 1<<16
272 #define MVO_JOYSTICK_BUTTON_1 1<<17
275 #define MVO_JOYSTICK_BUTTON_2 1<<18
278 #define MVO_JOYSTICK_BUTTON_3 1<<19
281 #define MVO_JOYSTICK_BUTTON_4 1<<20
284 #define MVO_JOYSTICK_BUTTON_5 1<<21
287 #define MVO_JOYSTICK_BUTTON_6 1<<22
290 #define MVO_JOYSTICK_BUTTON_7 1<<23
293 #define MVO_JOYSTICK_BUTTON_8 1<<24
296 static const int MAX_TOUCHES = 10;
299 bool Control()
const {
return(m_flags & MVO_CONTROL) != 0; }
300 bool Shift()
const {
return(m_flags & MVO_SHIFT) != 0; }
301 bool Alt()
const {
return(m_flags & MVO_ALT) != 0; }
302 bool LeftAlt()
const {
return(m_flags & MVO_LEFT_ALT) != 0; }
303 bool LeftControl()
const {
return(m_flags & MVO_LEFT_CONTROL) != 0; }
304 bool LeftShift()
const {
return(m_flags & MVO_LEFT_SHIFT) != 0; }
305 bool RightAlt()
const {
return(m_flags & MVO_RIGHT_ALT) != 0; }
306 bool RightControl()
const {
return(m_flags & MVO_RIGHT_CONTROL) != 0; }
307 bool RightShift()
const {
return(m_flags & MVO_RIGHT_SHIFT) != 0; }
308 bool LButton()
const {
return(m_flags & MVO_LBUTTON) != 0; }
309 bool MButton()
const {
return(m_flags & MVO_MBUTTON) != 0; }
310 bool RButton()
const {
return(m_flags & MVO_RBUTTON) != 0; }
311 bool LeftArrow()
const {
return(m_flags & MVO_LEFT_ARROW) != 0; }
312 bool UpArrow()
const {
return(m_flags & MVO_UP_ARROW) != 0; }
313 bool RightArrow()
const {
return(m_flags & MVO_RIGHT_ARROW) != 0; }
314 bool DownArrow()
const {
return(m_flags & MVO_DOWN_ARROW) != 0; }
327 unsigned int GetChar (
void)
const {
return m_Char; };
336 unsigned int GetFlags(
void )
const {
return m_flags; }
355 void SetPoint(
HEventType NewType,
int x,
int y,
unsigned int NewFlags);
366 void SetPixelPos(
HEventType NewType,
const HPoint& NewPoint,
unsigned int NewFlags);
378 void SetWindowPos(
HEventType NewType,
const HPoint& NewPoint,
unsigned int NewFlags);
389 void SetWorldPos(
HEventType NewType,
const HPoint& NewPoint,
unsigned int NewFlags);
399 void SetViewpointPos(
HEventType NewType,
const HPoint& NewPoint,
unsigned int NewFlags);
410 void SetKey(
HEventType NewType,
unsigned int nChar,
unsigned int nRepCnt,
unsigned int NewFlags);
417 void SetTimer(
HEventType NewType,
unsigned int nIDEvent);
423 void SetMouseWheelDelta(
int NewWheelDelta);
450 unsigned int m_RepCount;
451 unsigned int m_TimerId;
454 unsigned int m_flags;
bool RightAlt() const
Definition: HEventInfo.h:305
bool RButton() const
Definition: HEventInfo.h:310
float m_timestamp
Definition: HEventInfo.h:130
The middle mouse button is up.
Definition: HEventInfo.h:48
unsigned int GetFlags(void) const
Definition: HEventInfo.h:336
unsigned int GetChar(void) const
Definition: HEventInfo.h:327
float m_y
Definition: HEventInfo.h:129
The left mouse button was double-clicked.
Definition: HEventInfo.h:45
unsigned int GetTimerId(void) const
Definition: HEventInfo.h:330
bool LeftControl() const
Definition: HEventInfo.h:303
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:117
The mouse wheel has moved.
Definition: HEventInfo.h:57
The mouse cursor has moved.
Definition: HEventInfo.h:55
bool LeftShift() const
Definition: HEventInfo.h:304
int GetActiveTouchCount()
Definition: HEventInfo.h:179
A set of Rotation values from a 3D Mouse/Joystick.
Definition: HEventInfo.h:70
The left mouse button is up.
Definition: HEventInfo.h:44
bool RightControl() const
Definition: HEventInfo.h:306
self-explanatory
Definition: HEventInfo.h:61
bool m_bActive
Definition: HEventInfo.h:132
A touch down event has occured.
Definition: HEventInfo.h:73
void SetType(HEventType NewType)
Definition: HEventInfo.h:340
bool LeftAlt() const
Definition: HEventInfo.h:302
bool MButton() const
Definition: HEventInfo.h:309
No event ooccurred.
Definition: HEventInfo.h:41
bool UpArrow() const
Definition: HEventInfo.h:312
bool Control() const
Definition: HEventInfo.h:299
The left mouse button was pressed.
Definition: HEventInfo.h:43
const HPoint & GetJoystickTranslation(void) const
Definition: HEventInfo.h:324
The middle mouse button was pressed.
Definition: HEventInfo.h:47
The mouse wheel was scrolled down.
Definition: HEventInfo.h:59
int GetMouseWheelDelta() const
Definition: HEventInfo.h:437
The right mouse button was double-clicked.
Definition: HEventInfo.h:53
HTouchInfo()
Definition: HEventInfo.h:105
The right mouse button is up.
Definition: HEventInfo.h:52
bool Shift() const
Definition: HEventInfo.h:300
unsigned int GetCharRepCount(void) const
Definition: HEventInfo.h:329
bool RightShift() const
Definition: HEventInfo.h:307
int m_taps
Definition: HEventInfo.h:131
The HPoint class is the data type of a three-dimensional point.
Definition: HGlobals.h:126
float m_x
Definition: HEventInfo.h:128
A key on the keyboard was pressed.
Definition: HEventInfo.h:63
The HBaseView class defines and manages a view of model information.
Definition: HBaseView.h:337
The HTouchInfo class encapsulates touch events.
Definition: HEventInfo.h:87
A general selection event.
Definition: HEventInfo.h:67
bool LeftArrow() const
Definition: HEventInfo.h:311
A key on the keyboard was released.
Definition: HEventInfo.h:64
bool LButton() const
Definition: HEventInfo.h:308
const HPoint & GetMousePixelPos(void) const
Definition: HEventInfo.h:319
const HPoint & GetMouseViewpointPos(void) const
Definition: HEventInfo.h:322
const HPoint & GetMouseWorldPos(void) const
Definition: HEventInfo.h:321
The right mouse button was pressed.
Definition: HEventInfo.h:51
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:214
The mouse wheel was scrolled up.
Definition: HEventInfo.h:58
bool Alt() const
Definition: HEventInfo.h:301
HEventType GetType() const
Definition: HEventInfo.h:344
A touch up event has occured.
Definition: HEventInfo.h:74
void SetFlags(int flags)
Definition: HEventInfo.h:430
The middle mouse button was double-clicked.
Definition: HEventInfo.h:49
HEventType
Definition: HEventInfo.h:39
The HTouchManager class stores and manages touch input.
Definition: HEventInfo.h:142
const HPoint & GetMouseWindowPos(void) const
Definition: HEventInfo.h:320
A button press from a 3D Mouse/Joystick.
Definition: HEventInfo.h:71
MVO_POINTER_SIZED_UINT m_id
Definition: HEventInfo.h:133
HTouchInfo(float x, float y, float timestamp, int taps, int ident, bool active=true)
Definition: HEventInfo.h:99
A touch move event has occured.
Definition: HEventInfo.h:75
bool DownArrow() const
Definition: HEventInfo.h:314
HBaseView * GetView(void) const
Definition: HEventInfo.h:317
A 3D Translation vector from a 3D Mouse/Joystick.
Definition: HEventInfo.h:69
bool RightArrow() const
Definition: HEventInfo.h:313
const HPoint & GetJoystickRotation(void) const
Definition: HEventInfo.h:323