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:
rude
2009-10-10 11:11:04 +02:00
parent 0a2ae705dd
commit 87e3c4131c
101 changed files with 3225 additions and 33496 deletions
+10 -4
View File
@@ -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