aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Profiler/ProfilerKeyboardHandler.cs
diff options
context:
space:
mode:
authoremmauss <emmausssss@gmail.com>2020-02-06 11:25:47 +0000
committerGitHub <noreply@github.com>2020-02-06 11:25:47 +0000
commitf2b9a9c2b0a3d7af3b56df9ae09db8a3b2d8506c (patch)
tree7c4a0019c1c904397927567a0ad0685299cce1eb /Ryujinx.Profiler/ProfilerKeyboardHandler.cs
parentdb9f8f999f2c9a50e25685424271735ed3538539 (diff)
Render Profiler in GUI (#854)
* move profiler output to gui * addressed commits, rebased * removed whitespaces
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;
- }
- }
-}