LeviLamina
Loading...
Searching...
No Matches
GamepadEventThrottler.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/oreui/input/GamepadButton.h"
7#include "mc/client/gui/oreui/input/GamepadMode.h"
8#include "mc/client/gui/oreui/input/GamepadPressType.h"
9
10namespace OreUI {
11
13public:
14 // member variables
15 // NOLINTBEGIN
16 ::ll::TypedStorage<4, 144, ::std::array<int, 36>> mButtonEventCounters;
17 ::ll::TypedStorage<8, 576, ::std::array<::std::optional<::std::chrono::steady_clock::time_point>, 36>>
18 mButtonLongPressTimestamps;
19 ::ll::TypedStorage<8, 64, ::std::array<::std::chrono::steady_clock::time_point, 8>>
20 mNavigationalButtonEventTimestamps;
21 // NOLINTEND
22
23public:
24 // member functions
25 // NOLINTBEGIN
26 MCAPI ::OreUI::GamepadPressType shouldTrigger(
27 ::OreUI::GamepadButton button,
28 bool isButtonPressed,
29 ::std::chrono::steady_clock::time_point const& timestamp,
30 bool isMovingDiagonally,
31 ::OreUI::GamepadMode gamepadMode
32 );
33 // NOLINTEND
34};
35
36} // namespace OreUI
Definition GamepadEventThrottler.h:7