Merge branch 'freebsd-cleanup' of https://github.com/robmessick/godot into robmessick-freebsd-cleanup
This commit is contained in:
commit
fbcc81362c
@ -45,7 +45,10 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#ifdef __linux__
|
||||||
#include <linux/joystick.h>
|
#include <linux/joystick.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
//stupid linux.h
|
//stupid linux.h
|
||||||
#ifdef KEY_TAB
|
#ifdef KEY_TAB
|
||||||
@ -1031,7 +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++) {
|
||||||
@ -1065,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() {
|
||||||
@ -1073,7 +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;
|
||||||
@ -1172,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) {
|
||||||
|
@ -26,7 +26,13 @@
|
|||||||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
#ifdef __linux__
|
||||||
#include <alloca.h>
|
#include <alloca.h>
|
||||||
|
#endif
|
||||||
|
#ifdef __FreeBSD__
|
||||||
|
#include <stdlib.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#define GLES2_INCLUDE_H "gl_context/glew.h"
|
#define GLES2_INCLUDE_H "gl_context/glew.h"
|
||||||
#define GLES1_INCLUDE_H "gl_context/glew.h"
|
#define GLES1_INCLUDE_H "gl_context/glew.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user