mirror of
https://github.com/love2d/love.git
synced 2026-08-20 20:49:54 +02:00
Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
This commit is contained in:
@@ -21,11 +21,12 @@
|
||||
#ifndef LOVE_JOYSTICK_SDL_JOYSTICK_H
|
||||
#define LOVE_JOYSTICK_SDL_JOYSTICK_H
|
||||
|
||||
// SDL
|
||||
#include <SDL.h>
|
||||
|
||||
// LOVE
|
||||
#include <joystick/Joystick.h>
|
||||
#include <common/EnumMap.h>
|
||||
|
||||
// SDL
|
||||
#include <SDL.h>
|
||||
|
||||
namespace love
|
||||
{
|
||||
@@ -59,9 +60,14 @@ namespace sdl
|
||||
int getAxes(lua_State * L);
|
||||
int getBall(lua_State * L);
|
||||
bool isDown(int index, int button);
|
||||
int getHat(int index, int hat);
|
||||
Hat getHat(int index, int hat);
|
||||
void close(int index);
|
||||
|
||||
private:
|
||||
|
||||
static EnumMap<Hat, Uint8, Joystick::HAT_MAX_ENUM>::Entry hatEntries[];
|
||||
static EnumMap<Hat, Uint8, Joystick::HAT_MAX_ENUM> hats;
|
||||
|
||||
}; // Joystick
|
||||
|
||||
} // sdl
|
||||
|
||||
Reference in New Issue
Block a user