Commit 9d2335e7 authored by Dario Seyb's avatar Dario Seyb

added sdl events for input

parent 2de526d8
......@@ -7,9 +7,9 @@ install:
- sudo apt-get clean
- sudo apt-get update
- sudo apt-get purge cmake
- sudo apt-get install -yq build-essential gcc-4.8 g++-4.8 gcc-4.8-multilib g++-4.8-multilib xorg-dev libglu1-mesa-dev x11-xserver-utils xorg openbox libxxf86vm-dev
- sudo apt-get install -yq build-essential gcc-4.9 g++-4.9 gcc-4.9-multilib g++-4.9-multilib xorg-dev libglu1-mesa-dev x11-xserver-utils xorg openbox libxxf86vm-dev
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 80 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 80 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9
- echo 2 | sudo update-alternatives --config gcc
- wget http://www.cmake.org/files/v3.3/cmake-3.3.0-Linux-x86_64.tar.gz --no-check-certificate
- tar -xzf cmake-3.3.0-Linux-x86_64.tar.gz
......
#pragma once
#include <engine/events/SDLEvent.hpp>
struct ControllerEvent : public SDLEvent<ControllerEvent> {
};
\ No newline at end of file
#pragma once
#include <engine/events/SDLEvent.hpp>
struct JoystickEvent : public SDLEvent<JoystickEvent> {
};
\ No newline at end of file
#pragma once
#include <engine/events/SDLEvent.hpp>
struct KeyboardEvent : public SDLEvent<KeyboardEvent> {
};
\ No newline at end of file
#pragma once
#include <engine/events/SDLEvent.hpp>
struct MouseEvent : public SDLEvent<MouseEvent> {
};
\ No newline at end of file
#pragma once
#include <engine/events/Event.hpp>
#include <SDL.h>
template<typename Derived>
struct SDLEvent : public Event<Derived> {
SDL_Event originalEvent;
};
\ No newline at end of file
#pragma once
#include <engine/events/SDLEvent.hpp>
struct TouchEvent : public SDLEvent<TouchEvent> {
};
\ No newline at end of file
#pragma once
#include <engine/events/SDLEvent.hpp>
struct WindowEvent : public SDLEvent<WindowEvent> {
};
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment