CommonLibSSE (Parapets fork)
MenuEventHandler.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 namespace RE
6 {
7  class ButtonEvent;
8  class InputEvent;
9  class KinectEvent;
10  class MouseMoveEvent;
11  class ThumbstickEvent;
12  class VRWandEvent;
13  class VrWandTouchpadPositionEvent;
14  class VrWandTouchpadSwipeEvent;
15 
17  {
18  public:
19  inline static constexpr auto RTTI = RTTI_MenuEventHandler;
20 
21  MenuEventHandler() = default;
22  virtual ~MenuEventHandler() = default; // 00
23 
24  virtual bool ShouldHandleEvent(const InputEvent* a_event) = 0; // 01
25  virtual bool HandleEvent(const ButtonEvent* a_event); // 05 - { return false; }
26  virtual bool HandleEvent(const MouseMoveEvent* a_event); // 04 - { return false; }
27  virtual bool HandleEvent(const ThumbstickEvent* a_event); // 03 - { return false; }
28  virtual bool HandleEvent(const KinectEvent* a_event); // 02 - { return false; }
29 #ifdef SKYRIMVR
30  virtual bool HandleEvent(const VRWandEvent* a_event); // 04 - { return false; }
31  virtual bool HandleEvent(const VrWandTouchpadPositionEvent* a_event); // 03 - { return false; }
32  virtual bool HandleEvent(const VrWandTouchpadSwipeEvent* a_event); // 02 - { return false; }
33 #endif
34 
35  // members
36  bool registered; // 0C
37  std::uint8_t unk0D; // 0D
38  std::uint16_t pad0E; // 0E
39  };
40  static_assert(sizeof(MenuEventHandler) == 0x10);
41 }
Definition: ButtonEvent.h:15
Definition: InputEvent.h:26
Definition: KinectEvent.h:9
Definition: MenuEventHandler.h:17
virtual bool HandleEvent(const ThumbstickEvent *a_event)
virtual bool HandleEvent(const MouseMoveEvent *a_event)
virtual ~MenuEventHandler()=default
bool registered
Definition: MenuEventHandler.h:36
virtual bool HandleEvent(const ButtonEvent *a_event)
MenuEventHandler()=default
std::uint16_t pad0E
Definition: MenuEventHandler.h:38
static constexpr auto RTTI
Definition: MenuEventHandler.h:19
virtual bool ShouldHandleEvent(const InputEvent *a_event)=0
virtual bool HandleEvent(const KinectEvent *a_event)
std::uint8_t unk0D
Definition: MenuEventHandler.h:37
Definition: MouseMoveEvent.h:8
Definition: ThumbstickEvent.h:8
Definition: VRWandEvent.h:8
Definition: VrWandTouchpadPositionEvent.h:8
Definition: VrWandTouchpadSwipeEvent.h:8
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_MenuEventHandler
Definition: Offsets_RTTI.h:5154
Definition: BSIntrusiveRefCounted.h:8