Prechádzať zdrojové kódy

ifdef out body of probe_joystick and process_joysticks on freebsd until a working implementation is completed

Rob Messick 11 rokov pred
rodič
commit
026566f872
1 zmenil súbory, kde vykonal 4 pridanie a 0 odobranie
  1. 4 0
      platform/x11/os_x11.cpp

+ 4 - 0
platform/x11/os_x11.cpp

@@ -1034,6 +1034,7 @@ void OS_X11::close_joystick(int p_id) {
 };
 };
 
 
 void OS_X11::probe_joystick(int p_id) {
 void OS_X11::probe_joystick(int p_id) {
+	#ifndef __FreeBSD__
 	if (p_id == -1) {
 	if (p_id == -1) {
 
 
 		for (int i=0; i<JOYSTICKS_MAX; i++) {
 		for (int i=0; i<JOYSTICKS_MAX; i++) {
@@ -1067,6 +1068,7 @@ void OS_X11::probe_joystick(int p_id) {
 
 
 		++i;
 		++i;
 	};
 	};
+	#endif
 };
 };
 
 
 void OS_X11::move_window_to_foreground() {
 void OS_X11::move_window_to_foreground() {
@@ -1075,6 +1077,7 @@ void OS_X11::move_window_to_foreground() {
 }
 }
 
 
 void OS_X11::process_joysticks() {
 void OS_X11::process_joysticks() {
+	#ifndef __FreeBSD__
 	int bytes;
 	int bytes;
 	js_event events[32];
 	js_event events[32];
 	InputEvent ievent;
 	InputEvent ievent;
@@ -1173,6 +1176,7 @@ void OS_X11::process_joysticks() {
 			};
 			};
 		};
 		};
 	};
 	};
+	#endif
 };
 };
 
 
 void OS_X11::set_cursor_shape(CursorShape p_shape) {
 void OS_X11::set_cursor_shape(CursorShape p_shape) {