This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Antwort: Re: downgrade a 5-button- to a 3-button-mouse


On Mon, 18 Apr 2005, Hermann-Josef Beckers wrote:

> Problem is there is no real mouse, only the pen/stylus acting
> as a mouse. The mailinglist has a short thread (2 messages) from
> march 2003; Harold suggestesd using -multiwindow: it is activated,
> no chance.

For windows there are basicly two input devices. Keyboards and mice. 
Keyboards will generate keypress and release events (WM_KEYDOWN). 
Mice produce button press and relese events (WM_[LMRX]BUTTONDOWN) 
for the left, middle, right and extra buttons. 

The WM_KEYUP has two kind of key information attached. The raw keyboard
scancodes and the codes after applying the keyboard layout. Cygwin/X 
only uses the raw scancodes. If they don't match the real key it is very 
likely the key is not recognized.

I've placed a small program on http://www.tu-chemnitz.de/~goal/xfree/msgtest.exe
which will dump the messages to the console. Please run it and report 
what it prints when pressing the onscreen keys and what it reports 
when pressing the physical key.

> KeyRelease event, serial 13, synthetic NO, window 0x80051f,
>     root 0x3a, subw 0x0, time 1481218, (90,39), root:(176,413),
>     state 0x0, keycode 8 (keysym 0x0, NoSymbol), same_screen YES,
>     XLookupString gives 0 bytes: 

This is just the release. There was no keypress event. Either some flags
are wrong or the scancode was not right.

bye
	ago
-- 
 Alexander.Gottwald@s1999.tu-chemnitz.de 
 http://www.gotti.org           ICQ: 126018723


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]