You.i Engine
YiActionEvent.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_ACTION_EVENT_H_
3 #define _YI_ACTION_EVENT_H_
4 
5 #include "event/YiEvent.h"
6 #include "event/YiRay.h"
7 
18 class CYIActionEvent : public CYIEvent
19 {
20 public:
21  enum class ButtonType : uint8_t
22  {
23  Left = 0,
24  Right,
25  Middle,
26  None,
27  };
28 
32  CYIActionEvent(CYIEvent::Type eventType);
33  CYIActionEvent(const CYIActionEvent &rOther) = default;
34 
35  virtual ~CYIActionEvent();
36 
37  virtual std::unique_ptr<CYIEvent> Clone() const override;
38 
39  int32_t m_x;
40  int32_t m_y;
41  int32_t m_flippedY;
42  int32_t m_wheelDelta;
46  uint8_t m_pointerID;
51 };
52 
55 #endif // _YI_ACTION_EVENT_H_
int32_t m_x
Definition: YiActionEvent.h:39
glm::vec3 m_localSpaceLocation
Definition: YiActionEvent.h:50
virtual std::unique_ptr< CYIEvent > Clone() const override
Base class for events.
Definition: YiEvent.h:27
uint8_t m_pointerID
Definition: YiActionEvent.h:46
bool m_isHoverType
Definition: YiActionEvent.h:44
Encapsulates the origin and direction points of a ray.
Definition: YiRay.h:32
ButtonType m_button
Definition: YiActionEvent.h:43
int32_t m_y
Definition: YiActionEvent.h:40
CYIRay m_Ray
Definition: YiActionEvent.h:48
ButtonType
Definition: YiActionEvent.h:21
int32_t m_wheelDelta
Definition: YiActionEvent.h:42
int32_t m_flippedY
Definition: YiActionEvent.h:41
virtual ~CYIActionEvent()
CYIActionEvent(CYIEvent::Type eventType)
Stores data related to a user Action event.
Definition: YiActionEvent.h:18
Type
The event type of the CYIEvent class instance.
Definition: YiEvent.h:33