]> icculus.org git repositories - btb/d2x.git/blob - arch/sdl/key_arch.c
copied files from d1x
[btb/d2x.git] / arch / sdl / key_arch.c
1 // SDL keyboard input support
2
3 #include <stdio.h>
4 #include <stdlib.h>
5
6 #include <SDL/SDL.h>
7
8 #include "event.h"
9 #include "error.h"
10 #include "key.h"
11 #include "timer.h"
12
13
14
15 void key_handler(SDL_KeyboardEvent *event)
16 {
17         generic_key_handler(event->keysym.sym,(event->state == SDL_PRESSED));
18 }
19 void arch_key_close(void)
20 {
21 }
22 void arch_key_init(void)
23 {
24         keyd_fake_repeat=1;
25 }
26 void arch_key_flush(void)
27 {
28 }
29
30
31 void arch_key_poll(void)
32 {
33         event_poll();
34 }
35
36
37