Added joystick emulation
This commit is contained in:
parent
9ba75bd910
commit
4cb7d58d53
7 changed files with 293 additions and 2 deletions
3
src/pc.c
3
src/pc.c
|
|
@ -20,6 +20,7 @@
|
|||
#include "nvr.h"
|
||||
#include "pic.h"
|
||||
#include "pit.h"
|
||||
#include "plat-joystick.h"
|
||||
#include "plat-mouse.h"
|
||||
#include "serial.h"
|
||||
#include "sound.h"
|
||||
|
|
@ -196,6 +197,7 @@ void initpc()
|
|||
|
||||
keyboard_init();
|
||||
mouse_init();
|
||||
joystick_init();
|
||||
|
||||
loadconfig();
|
||||
pclog("Config loaded\n");
|
||||
|
|
@ -326,6 +328,7 @@ void runpc()
|
|||
keyboard_process();
|
||||
// checkkeys();
|
||||
pollmouse();
|
||||
poll_joystick();
|
||||
endblit();
|
||||
|
||||
framecountx++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue