mirror of
https://github.com/NoelFB/blah.git
synced 2025-06-29 19:25:26 +08:00
fixing various clang warnings
This commit is contained in:
@ -48,10 +48,9 @@ void InputBackend::frame()
|
||||
g_next_state.mouse.pressed[i] = false;
|
||||
g_next_state.mouse.released[i] = false;
|
||||
}
|
||||
g_next_state.mouse.wheel = Point::zero;
|
||||
|
||||
for (int i = 0; i < Blah::Input::max_text_input; i++)
|
||||
g_next_state.keyboard.text[i] = 0;
|
||||
g_next_state.mouse.wheel = Point::zero;
|
||||
g_next_state.keyboard.text.clear();
|
||||
|
||||
for (int i = 0; i < Blah::Input::max_controllers; i++)
|
||||
{
|
||||
@ -139,7 +138,7 @@ void InputBackend::on_key_up(Key key)
|
||||
|
||||
void InputBackend::on_text_utf8(const char* text)
|
||||
{
|
||||
strncat(g_next_state.keyboard.text, text, Blah::Input::max_text_input);
|
||||
g_next_state.keyboard.text += text;
|
||||
}
|
||||
|
||||
void InputBackend::on_controller_connect(int index, const char* name, int is_gamepad, int button_count, int axis_count, u16 vendor, u16 product, u16 version)
|
||||
|
Reference in New Issue
Block a user