mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
CBinds: Remove unused ModifierMatchesKey()
This commit is contained in:
parent
fff597cd2a
commit
e0876960fc
|
@ -132,24 +132,6 @@ int CBinds::GetModifierMaskOfKey(int Key)
|
|||
}
|
||||
}
|
||||
|
||||
bool CBinds::ModifierMatchesKey(int Modifier, int Key)
|
||||
{
|
||||
switch(Modifier)
|
||||
{
|
||||
case MODIFIER_SHIFT:
|
||||
return Key == KEY_LSHIFT || Key == KEY_RSHIFT;
|
||||
case MODIFIER_CTRL:
|
||||
return Key == KEY_LCTRL || Key == KEY_RCTRL;
|
||||
case MODIFIER_ALT:
|
||||
return Key == KEY_LALT || Key == KEY_RALT;
|
||||
case MODIFIER_GUI:
|
||||
return Key == KEY_LGUI || Key == KEY_RGUI;
|
||||
case MODIFIER_NONE:
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool CBinds::OnInput(IInput::CEvent e)
|
||||
{
|
||||
// don't handle invalid events
|
||||
|
|
|
@ -55,7 +55,6 @@ public:
|
|||
int GetBindSlot(const char *pBindString, int *pModifierCombination);
|
||||
static int GetModifierMask(IInput *i);
|
||||
static int GetModifierMaskOfKey(int Key);
|
||||
static bool ModifierMatchesKey(int Modifier, int Key);
|
||||
static const char *GetModifierName(int Modifier);
|
||||
static const char *GetKeyBindModifiersName(int ModifierCombination);
|
||||
|
||||
|
|
Loading…
Reference in a new issue