mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-17 21:51:20 +02:00
USE_SDL is no longer used
This commit is contained in:
@@ -1,24 +1,6 @@
|
|||||||
|
|
||||||
#ifdef USE_SDL
|
|
||||||
|
|
||||||
#ifdef SDL_INC
|
#ifdef SDL_INC
|
||||||
#include "SDL2/SDL_mouse.h"
|
#include "SDL2/SDL_mouse.h"
|
||||||
#else
|
#else
|
||||||
#include "SDL_mouse.h"
|
#include "SDL_mouse.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#else // USE_SDL
|
|
||||||
|
|
||||||
/* These are used for the renderer, which doesn't include the rest of SDL and only this file
|
|
||||||
* It still needs fake SDL_BUTTON_* constants to compile
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define SDL_BUTTON(X) (1 << ((X)-1))
|
|
||||||
#define SDL_BUTTON_LEFT 1
|
|
||||||
#define SDL_BUTTON_MIDDLE 2
|
|
||||||
#define SDL_BUTTON_RIGHT 3
|
|
||||||
#define SDL_BUTTON_WHEELUP 4
|
|
||||||
#define SDL_BUTTON_WHEELDOWN 5
|
|
||||||
|
|
||||||
#endif // USE_SDL
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user