Add some joystick functions to input. Enables manipulation of mappings at runtime

This commit is contained in:
hondres
2016-01-08 00:40:41 +01:00
parent 79c1392d17
commit c632c13c66
11 changed files with 226 additions and 24 deletions

View File

@ -1774,6 +1774,14 @@ void OS_X11::run() {
main_loop->finish();
}
bool OS_X11::is_joy_known(int p_device) {
return input->is_joy_mapped(p_device);
}
String OS_X11::get_joy_guid(int p_device) const {
return input->get_joy_guid_remapped(p_device);
}
OS_X11::OS_X11() {
#ifdef RTAUDIO_ENABLED