diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-11-19 19:31:56 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-11-19 19:31:56 -0300 |
commit | 43ce972ddb60b8de684cb1e7a023bc070afd90db (patch) | |
tree | b74616dd3cb02541a75989137dd178628700f93c /platform/x11/os_x11.cpp | |
parent | 0f71c90ff36c26ca5c7eec99eb1090ab1c864825 (diff) | |
parent | 3b9868d2e44740c03861c64020a8b5d4d6da031d (diff) | |
download | redot-engine-43ce972ddb60b8de684cb1e7a023bc070afd90db.tar.gz |
Merge pull request #903 from a12n/libao
libao audio driver
Diffstat (limited to 'platform/x11/os_x11.cpp')
-rw-r--r-- | platform/x11/os_x11.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp index 3218230d0b..bd60cf480e 100644 --- a/platform/x11/os_x11.cpp +++ b/platform/x11/os_x11.cpp @@ -32,6 +32,7 @@ #include "key_mapping_x11.h" #include <stdio.h> #include <stdlib.h> +#include <string.h> #include "print_string.h" #include "servers/physics/physics_server_sw.h" @@ -1672,7 +1673,7 @@ void OS_X11::close_joystick(int p_id) { }; void OS_X11::probe_joystick(int p_id) { - #ifndef __FreeBSD__ + #if !defined(__FreeBSD__) && !defined(__OpenBSD__) if (p_id == -1) { @@ -1727,7 +1728,7 @@ void OS_X11::move_window_to_foreground() { } void OS_X11::process_joysticks() { - #ifndef __FreeBSD__ + #if !defined(__FreeBSD__) && !defined(__OpenBSD__) int bytes; js_event events[32]; InputEvent ievent; @@ -1960,6 +1961,10 @@ OS_X11::OS_X11() { AudioDriverManagerSW::add_driver(&driver_alsa); #endif +#ifdef AO_ENABLED + AudioDriverManagerSW::add_driver(&driver_ao); +#endif + minimized = false; xim_style=0L; mouse_mode=MOUSE_MODE_VISIBLE; |