fix?
This commit is contained in:
parent
97caf13aaf
commit
ae30613813
16
src/external/RGFW.h
vendored
16
src/external/RGFW.h
vendored
|
|
@ -59,7 +59,7 @@
|
||||||
#define RGFW_EXPORT - Use when building RGFW
|
#define RGFW_EXPORT - Use when building RGFW
|
||||||
#define RGFW_IMPORT - Use when linking with RGFW (not as a single-header)
|
#define RGFW_IMPORT - Use when linking with RGFW (not as a single-header)
|
||||||
|
|
||||||
#define RGFW_STD_INT - force the use stdint.h (for systems that might not have stdint.h (msvc))
|
#define RGFW_USE_INT - force the use c-types rather than stdint.h (for systems that might not have stdint.h (msvc))
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
@ -168,15 +168,15 @@
|
||||||
#define RGFW_HEADER
|
#define RGFW_HEADER
|
||||||
|
|
||||||
#if !defined(u8)
|
#if !defined(u8)
|
||||||
#if ((defined(_MSC_VER) || defined(__SYMBIAN32__)) && !defined(RGFW_STD_INT)) /* MSVC might not have stdint.h */
|
#ifdef RGFW_USE_INT /* optional for any system that might not have stdint.h */
|
||||||
typedef unsigned char u8;
|
typedef unsigned char u8;
|
||||||
typedef signed char i8;
|
typedef signed char i8;
|
||||||
typedef unsigned short u16;
|
typedef unsigned short u16;
|
||||||
typedef signed short i16;
|
typedef signed short i16;
|
||||||
typedef unsigned int u32;
|
typedef unsigned long int u32;
|
||||||
typedef signed int i32;
|
typedef signed long int i32;
|
||||||
typedef unsigned long u64;
|
typedef unsigned long long u64;
|
||||||
typedef signed long i64;
|
typedef signed long long i64;
|
||||||
#else /* use stdint standard types instead of c ""standard"" types */
|
#else /* use stdint standard types instead of c ""standard"" types */
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
|
@ -2294,7 +2294,7 @@ This is where OS specific stuff starts
|
||||||
RGFW_jsButtonCallback(win, i, e.number, e.value);
|
RGFW_jsButtonCallback(win, i, e.number, e.value);
|
||||||
|
|
||||||
return &win->event;
|
return &win->event;
|
||||||
case JS_EVENT_AXIS:
|
case JS_EVENT_AXIS: {
|
||||||
size_t axis = e.number / 2;
|
size_t axis = e.number / 2;
|
||||||
if (axis == 2) axis = 1;
|
if (axis == 2) axis = 1;
|
||||||
|
|
||||||
|
|
@ -2314,7 +2314,7 @@ This is where OS specific stuff starts
|
||||||
win->event.whichAxis = axis;
|
win->event.whichAxis = axis;
|
||||||
RGFW_jsAxisCallback(win, i, win->event.axis, win->event.axisesCount);
|
RGFW_jsAxisCallback(win, i, win->event.axis, win->event.axisesCount);
|
||||||
return &win->event;
|
return &win->event;
|
||||||
|
}
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1253,7 +1253,7 @@ int InitPlatform(void)
|
||||||
I think this is needed by Raylib now ?
|
I think this is needed by Raylib now ?
|
||||||
If so, rcore_destkop_sdl should be updated too
|
If so, rcore_destkop_sdl should be updated too
|
||||||
*/
|
*/
|
||||||
|
//SetupFramebuffer(CORE.Window.display.width, CORE.Window.display.height);
|
||||||
|
|
||||||
if (CORE.Window.flags & FLAG_VSYNC_HINT) RGFW_window_swapInterval(platform.window, 1);
|
if (CORE.Window.flags & FLAG_VSYNC_HINT) RGFW_window_swapInterval(platform.window, 1);
|
||||||
RGFW_window_makeCurrent(platform.window);
|
RGFW_window_makeCurrent(platform.window);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user