Skip to content

Commit

Permalink
Merge pull request #137 from digital-apple/dev
Browse files Browse the repository at this point in the history
Implement QuickSaveLoadHandler
  • Loading branch information
powerof3 authored Sep 30, 2024
2 parents de24a12 + df31d77 commit dc1e10f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/RE/M/MenuControls.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "RE/B/BSTEvent.h"
#include "RE/B/BSTSingleton.h"
#include "RE/B/BSTSmartPointer.h"
#include "RE/Q/QuickSaveLoadHandler.h"

namespace RE
{
Expand All @@ -15,7 +16,6 @@ namespace RE
struct DirectionHandler;
struct FavoritesHandler;
struct MenuOpenHandler;
struct QuickSaveLoadHandler;
struct ScreenshotHandler;

class MenuControls :
Expand Down
29 changes: 29 additions & 0 deletions include/RE/Q/QuickSaveLoadHandler.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#pragma once

#include "RE/M/MenuEventHandler.h"

namespace RE
{
class ButtonEvent;
class InputEvent;
class KinectEvent;
class MouseMoveEvent;
class ThumbstickEvent;

class QuickSaveLoadHandler : public MenuEventHandler
{
public:
inline static constexpr auto RTTI = RTTI_QuickSaveLoadHandler;
inline static constexpr auto VTABLE = VTABLE_QuickSaveLoadHandler;

~QuickSaveLoadHandler() override; // 00

// override (MenuEventHandler)
bool CanProcess(InputEvent* a_event) override; // 01
bool ProcessKinect(KinectEvent* a_event) override; // 02
bool ProcessThumbstick(ThumbstickEvent* a_event) override; // 03
bool ProcessMouseMove(MouseMoveEvent* a_event) override; // 04
bool ProcessButton(ButtonEvent* a_event) override; // 05
};
static_assert(sizeof(QuickSaveLoadHandler) == 0x10);
}

0 comments on commit dc1e10f

Please sign in to comment.