WindowsCE version

master
steffen 12 years ago
parent 465eb3647f
commit 3c01d729cd

@ -2,6 +2,7 @@
OSMroute already. OSMroute already.
============================================================================= =============================================================================
(2014-02-05): (2014-02-05):
- fixed: windowsCE version is running again.
- fixed: pressing the button long time did not work. - fixed: pressing the button long time did not work.
(2014-01-20): (2014-01-20):

@ -95,7 +95,8 @@ sposmroutece.exe:
do if ! make -C $$i; then \ do if ! make -C $$i; then \
exit -2; \ exit -2; \
fi done fi done
$(CC) -o sposmroutece.exe wince/wince.rsc -lwince -lmapsys -ldraw -lbase -lgui -lmain -Lbase -Lmain -Ldraw -Lgui -Lmapsys -Lwince $(LIBS) $(DEBUG) $(CC) -o sposmroutece.exe wince/wince.rsc `for i in \`make -sf wince/Makefile displayobj\`; do echo wince/$$i; done` -ldraw -lmapsys -lgui -lmain -lbase -Lbase -Lmain -Ldraw -Lgui -Lmapsys -Lwince $(LIBS) $(DEBUG)
# $(CC) -o sposmroutece.exe wince/wince.rsc -lwince -lmapsys -ldraw -lbase -lgui -lmain -Lbase -Lmain -Ldraw -Lgui -Lmapsys -Lwince $(LIBS) $(DEBUG)
cleanapp: cleanapp:
rm -rf sposmroutece.exe rm -rf sposmroutece.exe

@ -3,10 +3,10 @@
WINCEVERSION = 1 WINCEVERSION = 1
DEPENDFILE = .depend DEPENDFILE = .depend
DEBUG = -ggdb DEBUG = -ggdb
AR = /opt/mingw32ce/bin/arm-mingw32ce-ar AR = arm-mingw32ce-ar
CC = /opt/mingw32ce/bin/arm-mingw32ce-gcc CC = arm-mingw32ce-gcc
CFLAGS = -Wall -g -I../main -I../ -I../mapsys -I../gui -I../wince -I../draw -I../base -DSPOSMROUTE -DHAVE_WINAPI -D_WIN32_IE=0x400 $(DEBUG) CFLAGS = -Wall -g -I../main -I../ -I../mapsys -I../gui -I../wince -I../draw -I../base -DSPOSMROUTE -DHAVE_WINAPI -D_WIN32_IE=0x400 $(DEBUG)
WINRES = /opt/mingw32ce/bin/arm-mingw32ce-windres WINRES = arm-mingw32ce-windres
LIBS = -lcommctrl -laygshell -lws2 LIBS = -lcommctrl -laygshell -lws2
%.o: %.c %.o: %.c

@ -415,10 +415,10 @@ LRESULT CALLBACK WndProcedure(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
draw_mousemove (x, y, -1); draw_mousemove (x, y, -1);
break; break;
case WM_CHAR: case WM_CHAR:
if (wParam < ' ') gevent.keyval = 0xff00 | wParam; if (wParam < ' ') gevent.keychar = 0xff00 | wParam;
else gevent.keyval = wParam; else gevent.keychar = wParam;
gevent.event = EGUI_KEYCHAR; gevent.event = EGUI_KEYCHAR;
d_printf ("char wParam:%x keyval:%x", wParam, gevent.keyval); d_printf ("char wParam:%x keyval:%x", wParam, gevent.keychar);
if (gui_event (gevent) != 0) draw(); if (gui_event (gevent) != 0) draw();
break; break;
// case WM_KEYUP: // case WM_KEYUP:

Loading…
Cancel
Save