diff --git a/src/ui/input.cpp b/src/ui/input.cpp index 97694048..efda2996 100644 --- a/src/ui/input.cpp +++ b/src/ui/input.cpp @@ -93,7 +93,7 @@ void InputDeviceInternal::AddKey(int index, const char* name) while (index >= (int)m_key_names.size()) { - m_key_names.push_back(name); + m_key_names.push_back(""); m_keys.push_back(false); } @@ -107,7 +107,7 @@ void InputDeviceInternal::AddAxis(int index, const char* name, float sensitivity while (index >= (int)m_axis_names.size()) { - m_axis_names.push_back(name); + m_axis_names.push_back(""); m_axis.push(0.0f, 1.0f); } @@ -123,7 +123,7 @@ void InputDeviceInternal::AddCursor(int index, const char* name) while (index >= (int)m_cursor_names.size()) { - m_cursor_names.push_back(name); + m_cursor_names.push_back(""); m_cursors.push(vec2::zero, ivec2::zero); } diff --git a/src/ui/keys.inc b/src/ui/keys.inc index 5fd01328..186e53db 100644 --- a/src/ui/keys.inc +++ b/src/ui/keys.inc @@ -22,7 +22,6 @@ _SC(0, "", Unknown) /* Usage page 0x07 */ -_SC(3, "", Whatever) // FIXME: if this isn’t here, we can’t bind key A; WTF? _SC(4, "A", A) _SC(5, "B", B) _SC(6, "C", C)