ref: 2d093d2651d333cbd4eec7747595da947eb4952b
parent: e962c6df096df82b5a8b04a12b967bdad80e8ff3
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri Mar 19 08:47:56 EDT 2021
sdl2: move stuff around
--- a/include/npe/SDL2/SDL.h
+++ b/include/npe/SDL2/SDL.h
@@ -122,8 +122,6 @@
int SDL_RenderSetIntegerScale(SDL_Renderer *r, SDL_bool enable);
enum {
- SDL_THREAD_PRIORITY_HIGH = 1,
-
SDL_QUERY = -1,
SDL_DISABLE,
SDL_ENABLE,
@@ -173,23 +171,6 @@
};
enum {
- SDL_KEYDOWN = 0,
- SDL_KEYUP,
- SDL_MOUSEBUTTONDOWN,
- SDL_MOUSEBUTTONUP,
- SDL_MOUSEWHEEL,
- SDL_MOUSEMOTION,
- SDL_QUIT,
- SDL_DROPFILE,
- SDL_TEXTINPUT,
- SDL_WINDOWEVENT,
- SDL_WINDOWEVENT_HIDDEN,
- SDL_WINDOWEVENT_SHOWN,
- SDL_WINDOWEVENT_MINIMIZED,
- SDL_WINDOWEVENT_FOCUS_LOST,
- SDL_WINDOWEVENT_EXPOSED,
- SDL_WINDOWEVENT_SIZE_CHANGED,
-
SDL_BUTTON_LEFT = 0,
SDL_BUTTON_MIDDLE = 1,
SDL_BUTTON_RIGHT = 2,
--- a/include/npe/SDL2/SDL_events.h
+++ b/include/npe/SDL2/SDL_events.h
@@ -2,6 +2,23 @@
#define _npe_SDL_events_h_
enum {
+ SDL_KEYDOWN,
+ SDL_KEYUP,
+ SDL_MOUSEBUTTONDOWN,
+ SDL_MOUSEBUTTONUP,
+ SDL_MOUSEWHEEL,
+ SDL_MOUSEMOTION,
+ SDL_QUIT,
+ SDL_DROPFILE,
+ SDL_TEXTINPUT,
+ SDL_WINDOWEVENT,
+ SDL_WINDOWEVENT_HIDDEN,
+ SDL_WINDOWEVENT_SHOWN,
+ SDL_WINDOWEVENT_MINIMIZED,
+ SDL_WINDOWEVENT_FOCUS_LOST,
+ SDL_WINDOWEVENT_EXPOSED,
+ SDL_WINDOWEVENT_SIZE_CHANGED,
+
SDL_TEXTINPUTEVENT_TEXT_SIZE = UTFmax,
};
--- a/include/npe/SDL2/SDL_thread.h
+++ b/include/npe/SDL2/SDL_thread.h
@@ -1,6 +1,13 @@
#ifndef _npe_SDL_thread_h_
#define _npe_SDL_thread_h_
+enum {
+ SDL_THREAD_PRIORITY_LOW = -1,
+ SDL_THREAD_PRIORITY_NORMAL,
+ SDL_THREAD_PRIORITY_HIGH,
+ SDL_THREAD_PRIORITY_TIME_CRITICAL,
+};
+
typedef struct SDL_Thread SDL_Thread;
typedef int (*SDL_ThreadFunction)(void *);
#pragma incomplete SDL_Thread