mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-01 14:27:59 +03:00
Added Mangle::Input with SDL and OIS implementation. WIP.
This commit is contained in:
parent
eed875ae04
commit
96e456ee09
16 changed files with 529 additions and 1 deletions
16
input/tests/sdl_driver_test.cpp
Normal file
16
input/tests/sdl_driver_test.cpp
Normal file
|
@ -0,0 +1,16 @@
|
|||
#include "common.cpp"
|
||||
|
||||
#include "../servers/sdl_driver.hpp"
|
||||
#include <SDL.h>
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
SDL_Init(SDL_INIT_VIDEO);
|
||||
SDL_SetVideoMode(640, 480, 0, SDL_SWSURFACE);
|
||||
input = new SDLDriver();
|
||||
|
||||
mainLoop(argc, SDLK_q);
|
||||
|
||||
SDL_Quit();
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue