61 refresh_device_ =
false;
66 button_state_map_.
clear();
73 button_state_map_.
update();
75 uint32_t buttons_count = os::gamepad::get_buttons_count(device_);
76 for(uint32_t
b = 0;
b < buttons_count; ++
b)
78 auto state = os::gamepad::get_button_state(device_,
b);
81 if(state == os::gamepad::button_state::pressed)
89 uint32_t axis_count = os::gamepad::get_axis_count(device_);
90 for(
int a = 0;
a < axis_count; ++
a)
92 float normalized = os::gamepad::get_axis_value_normalized(device_,
a);
94 axis_map_[
a] = normalized;