aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Profiler/ProfilerKeyboardHandler.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Profiler/ProfilerKeyboardHandler.cs')
-rw-r--r--Ryujinx.Profiler/ProfilerKeyboardHandler.cs28
1 files changed, 0 insertions, 28 deletions
diff --git a/Ryujinx.Profiler/ProfilerKeyboardHandler.cs b/Ryujinx.Profiler/ProfilerKeyboardHandler.cs
deleted file mode 100644
index e6207e89..00000000
--- a/Ryujinx.Profiler/ProfilerKeyboardHandler.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-using OpenTK.Input;
-
-namespace Ryujinx.Profiler
-{
- public struct ProfilerButtons
- {
- public Key ToggleProfiler;
- }
-
- public class ProfilerKeyboardHandler
- {
- public ProfilerButtons Buttons;
-
- private KeyboardState _prevKeyboard;
-
- public ProfilerKeyboardHandler(ProfilerButtons buttons)
- {
- Buttons = buttons;
- }
-
- public bool TogglePressed(KeyboardState keyboard) => !keyboard[Buttons.ToggleProfiler] && _prevKeyboard[Buttons.ToggleProfiler];
-
- public void SetPrevKeyboardState(KeyboardState keyboard)
- {
- _prevKeyboard = keyboard;
- }
- }
-}