diff -Ndru SDL-1.2.7_old/src/video/qtopia/Makefile.am SDL-1.2.7/src/video/qtopia/Makefile.am --- SDL-1.2.7_old/src/video/qtopia/Makefile.am 2005-03-08 15:13:16.000000000 -0200 +++ SDL-1.2.7/src/video/qtopia/Makefile.am 2005-03-08 15:16:17.000000000 -0200 @@ -22,4 +22,4 @@ # overwrite USER variables CXXLD = $(CC) CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -lsupc++ -o $@ + $(AM_LDFLAGS) $(LDFLAGS) -lopiecore2 -lsupc++ -o $@ $(TAGS_FILES) $(LISP) diff -Ndru SDL-1.2.7_old/src/video/qtopia/SDL_QWin.cc SDL-1.2.7/src/video/qtopia/SDL_QWin.cc --- SDL-1.2.7_old/src/video/qtopia/SDL_QWin.cc 2005-03-08 15:13:16.000000000 -0200 +++ SDL-1.2.7/src/video/qtopia/SDL_QWin.cc 2005-03-08 15:16:17.000000000 -0200 @@ -29,8 +29,11 @@ #include "SDL_QWin.h" #include #include +#include #include +using namespace Opie::Core; + extern int fb_hwrot; extern int fb_direct; extern bool is_VGA_machine; @@ -545,18 +548,32 @@ case Qt::Key_F7: scancode = SDLK_F7; break; case Qt::Key_F8: scancode = SDLK_F8; break; case Qt::Key_F9: - scancode = SDLK_F9; - mouse_button_mode=1; + if ( ODevice::inst ( )-> series ( ) == Model_iPAQ ) { + scancode = SDLK_y; } + else { + scancode = SDLK_F9; + mouse_button_mode=1; } break; case Qt::Key_F10: - scancode = SDLK_F10; - mouse_button_mode=2; + if ( ODevice::inst ( )-> series ( ) == Model_iPAQ ) { + scancode = SDLK_LALT; } + else { + scancode = SDLK_F10; + mouse_button_mode=2; } break; case Qt::Key_F11: scancode = SDLK_F11; break; - case Qt::Key_F12: scancode = SDLK_F12; break; + case Qt::Key_F12: + if ( ODevice::inst ( )-> series ( ) == Model_iPAQ ) { + scancode = SDLK_RETURN; } + else { + scancode = SDLK_F12; } + break; case Qt::Key_F13: - scancode = SDLK_F13; - mouse_button_mode=3; + if ( ODevice::inst ( )-> series ( ) == Model_iPAQ ) { + scancode = SDLK_ESCAPE; } + else { + scancode = SDLK_F13; + mouse_button_mode=3; } break; case Qt::Key_F14: scancode = SDLK_F14; break; case Qt::Key_F15: scancode = SDLK_F15; break; @@ -573,6 +590,9 @@ scancode = SDLK_RETURN; break; + // To use record button on ipaq + case Qt::Key_F24: scancode = SDLK_LSHIFT; break; + default: scancode = SDLK_UNKNOWN; break; diff -Ndru SDL-1.2.7_old/src/video/qtopia/SDL_sysvideo.cc SDL-1.2.7/src/video/qtopia/SDL_sysvideo.cc --- SDL-1.2.7_old/src/video/qtopia/SDL_sysvideo.cc 2005-03-08 15:13:15.000000000 -0200 +++ SDL-1.2.7/src/video/qtopia/SDL_sysvideo.cc 2005-03-08 15:43:30.000000000 -0200 @@ -45,6 +45,7 @@ #include #include #include +#include #include #include #include @@ -66,6 +67,8 @@ #include "SDL_syswm_c.h" #include "SDL_lowvideo.h" +using namespace Opie::Core; + //#define QTOPIA_DEBUG #define QTOPIA_LOG #define QT_HIDDEN_SIZE 32 /* starting hidden window size */ @@ -106,6 +109,7 @@ MACHINE_SHARP_SLC760, MACHINE_SHARP_SLC860, MACHINE_SHARP_SL6000, + MACHINE_IPAQ, MACHINE_MAX } machine_t; @@ -119,6 +123,7 @@ { "Sharp", "SL-C760", 0 }, { "Sharp", "SL-C860", 0 }, { "Sharp", "SL-6000", 0 }, + { "HP", "HP IPAQ", 0 }, }; /* Name of the environment variable used to invert the screen rotation or not: @@ -423,6 +428,13 @@ machine = MACHINE_SHARP_SLC760; else if (strstr(buf, "SHARP Boxer") != NULL) machine = MACHINE_SHARP_SLC860; + else if ( ODevice::inst ( )-> series ( ) == Model_iPAQ ) + machine = MACHINE_IPAQ; + else + { + machine = MACHINE_SHARP_SL5000D; + LOG("Can't detect machine defaulting to SL5000D"); + } } fclose(fp); } else { @@ -679,6 +691,11 @@ if (machine == MACHINE_SHARP_SL5500) qteRotation = 3; + // HP IPaq + if ( ODevice::inst ( )-> series ( ) == Model_iPAQ ) + qteRotation = 3; + + // SL-B500 用ハック(とりあえず、ね) if (machine == MACHINE_SHARP_SLB500) qteRotation = 3;