File tree 3 files changed +4
-7
lines changed
3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -745,7 +745,7 @@ namespace gamescope
745
745
if ( event.type == SDL_KEYUP && ( event.key .keysym .mod & KMOD_LGUI ) )
746
746
{
747
747
auto shortcut = g_shortcutHandler.GetShortcut ( key );
748
- bool handled = g_shortcutHandler.HandleShortcut ( shortcut );
748
+ g_shortcutHandler.HandleShortcut ( shortcut );
749
749
750
750
switch ( shortcut )
751
751
{
@@ -763,7 +763,7 @@ namespace gamescope
763
763
default :
764
764
break ;
765
765
}
766
- if ( handled )
766
+ if ( shortcut != GAMESCOPE_SHORTCUT_NONE )
767
767
{
768
768
break ;
769
769
}
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ namespace gamescope
51
51
return GAMESCOPE_SHORTCUT_NONE;
52
52
}
53
53
54
- bool ShortcutHandler::HandleShortcut ( GamescopeShortcut shortcut )
54
+ void ShortcutHandler::HandleShortcut ( GamescopeShortcut shortcut )
55
55
{
56
56
switch ( shortcut )
57
57
{
@@ -82,11 +82,8 @@ namespace gamescope
82
82
g_bGrabbed = !g_bGrabbed;
83
83
break ;
84
84
default :
85
- return false ;
86
85
break ;
87
86
}
88
-
89
- return true ;
90
87
}
91
88
92
89
static const char * ShortcutNames[GAMESCOPE_SHORTCUT_COUNT] = {
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ namespace gamescope
34
34
35
35
GamescopeShortcut GetShortcut ( uint32_t key );
36
36
37
- bool HandleShortcut ( GamescopeShortcut shortcut );
37
+ void HandleShortcut ( GamescopeShortcut shortcut );
38
38
39
39
private:
40
40
std::map<uint32_t , GamescopeShortcut> m_binds;
You can’t perform that action at this time.
0 commit comments