| [ Return to Bugs & Features | Roadmap 2.0 | Post Text | Post File ]
STR #2095
Application: | FLTK Library |
Status: | 5 - New |
Priority: | 4 - High, e.g. key functionality not working |
Scope: | 2 - Specific to an operating system |
Subsystem: | Unassigned |
Summary: | FLTK2 WinCE port, mouse events do not work |
Version: | 2.0-current |
Created By: | pkz |
Assigned To: | Unassigned |
Fix Version: | Unassigned |
Update Notification: | |
Trouble Report Files:
[ Post File ]
Trouble Report Comments:
[ Post Text ]
|
| Hi!
For my project I made port fltk-2.0.x-r6483 to WinCE. Currently libs and same test may bee compiled and linked. Only problem that mouse events do not work. Can You help me, please (really I am not programmer, so sorry for my possible errors in code). Base system: Ubuntu 8.04 CeGCC (http://cegcc.sourceforge.net/) arm-mingw32ce : toolset to build native Windows CE applications
My schell script for it: ---------------------------------------------------------- #!/bin/bash AAA=mingw32ce ARCH=arm-wince-$AAA CEGCC_PATH=/opt/$AAA export CC=$ARCH-gcc export CXX=$ARCH-g++ export WINDRES=$ARCH-windres export AR=$ARCH-ar export RANLIB=$ARCH-ranlib export STRIP=$ARCH-strip export OPTIM="-O2 -Wall -Wunused -I$CEGCC_PATH/include -mwin32 -DWIN32 -D_WIN32_WCE=0x0400 -D_WIN32_IE=0x0400 -DUSE_DRAGDROP=0 -DNO_ERRNO_H -DNO_TRACK_MOUSE -DNO_GETENV -I$CEGCC_PATH/arm-wince-$AAA/include" export LDFLAGS="-L$CEGCC_PATH/lib -L$CEGCC_PATH/arm-wince-$AAA/lib" export PATH=/opt/$AAA/bin:/opt/$AAA/arm-wince-$AAA/bin:$PATH
./configure --disable-shared --disable-gl --disable-debug --disable-cairo --disable-xft --disable-xshm --disable-xdbe --disable-xinerama --disable-threads --enable-static --host=arm-wince-$AAA --prefix=$CEGCC_PATH make ------------------------------------------------------------
Unfortunetly configure work uncorrectly, so look changes that I made in it and some other files. | |
|
| Problem with mouse(stick): if I remove "-DNO_TRACK_MOUSE" from CFLAGS, linker write for any test programm: Linking arc.exe... ../lib/libfltk2.a(run.o):run.cxx:(.text+0x28ac): undefined reference to `TrackMouseEvent' collect2: ld returned 1 exit status reference is in src/win32/run.cxx rows 1229 - 1356
Recomendation for this problem from Microsoft: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=524177&SiteID=1 | |
|
#3 | AlbrechtS 01:06 Nov 26, 2008 |
| If WinCE doesn't support TrackMouseEvent, then it is okay (needed) to use "-DNO_TRACK_MOUSE". You could also uncomment the statement "//#define NO_TRACK_MOUSE 1" in src/win32/run.cxx in your patch for WinCE. If we would add WinCE support to FLTK, then we might make this dependent on "_WIN32_WCE" or some other define, or try to load this function dynamically.
But this has nothing to do with normal mouse events (moving the pointer around, clicking etc.). It is only used for WM_MOUSELEAVE events, i.e. to know when the mouse leaves the current window.
Could you please tell us more about your "Problem with mouse(stick)"? Does this mean that you can't use the mouse (touchscreen ?) at all?
If so, the problem must be something else.
Maybe it would help, if we knew more about the device you're using? | |
|
| >dependent on "_WIN32_WCE" or some other define, or try to load this function dynamically.
I try also make it with VisualStudio2008 - and had completly another set of errors. So define should bee more specific, like "_MING32CE".
>Could you please tell us more about your "Problem with mouse(stick)"? >Does this mean that you can't use the mouse (touchscreen ?) at all?
Yes.
>If so, the problem must be something else.
I do not have any idea.
>Maybe it would help, if we knew more about the device you're using?
HTC P4350 (with QWERTY keyboard) - no react to stick or "tab" and "arrows" on keyboard Windows Mobile SDK 6 emulator with VS2008 - no react to mouse.
If You have any devace, please, try programs from "Tests.rar" - it is test samples from FLTK, that I compiled. | |
[ Return to Bugs & Features | Post Text | Post File ]
|
| |