latest fix for win32 simulator

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1495 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Felix Arends 2002-07-30 10:55:26 +00:00
parent 217023ff67
commit 8da338e9f0
2 changed files with 19 additions and 1 deletions

View file

@ -27,12 +27,29 @@
#define KEY(k) (HIBYTE(GetKeyState (k)) & 1) #define KEY(k) (HIBYTE(GetKeyState (k)) & 1)
int last_key ; int last_key ;
static int release_mask;
static int repeat_mask;
void button_init(void) void button_init(void)
{ {
last_key = 0 ; last_key = 0 ;
} }
int button_set_repeat(int newmask)
{
int oldmask = repeat_mask;
repeat_mask = newmask;
return oldmask;
}
int button_set_release(int newmask)
{
int oldmask = release_mask;
release_mask = newmask;
return oldmask;
}
int button_get(bool block) int button_get(bool block)
{ {
int func_call = current_tick; int func_call = current_tick;

View file

@ -20,6 +20,7 @@
FIRMWAREDIR = ../../firmware FIRMWAREDIR = ../../firmware
DRIVERS = $(FIRMWAREDIR)/drivers DRIVERS = $(FIRMWAREDIR)/drivers
COMMON = $(FIRMWAREDIR)/common COMMON = $(FIRMWAREDIR)/common
APPSCOMMON = ../common
SIMDIR = ../win32/ SIMDIR = ../win32/
APPDIR = ../../apps/ APPDIR = ../../apps/
RECDIR = $(APPDIR)recorder/ RECDIR = $(APPDIR)recorder/
@ -46,7 +47,7 @@ CFLAGS = $(DEBUG) $(DEFINES) $(INCLUDES) /MD /Fd"Release/vc70.pdb" /c
SRCS = *.c \ SRCS = *.c \
$(DRIVERS)/lcd.c $(DRIVERS)/power.c \ $(DRIVERS)/lcd.c $(DRIVERS)/power.c \
$(APPDIR)*.c \ $(APPDIR)*.c \
$(FIRMWAREDIR)/chartables.c $(FIRMWAREDIR)/id3.c $(FIRMWAREDIR)/usb.c \ $(FIRMWAREDIR)/chartables.c $(FIRMWAREDIR)/id3.c $(FIRMWAREDIR)/usb.c $(FIRMWAREDIR)/mpeg.c \
$(COMMON)/sprintf.c $(COMMON)/strtok.c $(COMMON)/sprintf.c $(COMMON)/strtok.c
!IF ("$(DISPLAY)" == "-DHAVE_LCD_BITMAP") !IF ("$(DISPLAY)" == "-DHAVE_LCD_BITMAP")