Re: GDK Keycodes
- From: Sebastian PajÄk <spconv+m gmail com>
- To: Tor Lillqvist <tml iki fi>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GDK Keycodes
- Date: Fri, 16 Apr 2010 11:08:35 +0200
1. Why <shift> modifies "keyval" value if it's included as a flag in
"state" anyway?
Because it is. If it wasn't, somebody would ask why it isn't. If you
think GDK was originally designed by a committee, deliberating for
years, determined to design the best imagineable API with no
inconsistencies at all, you are mistaken.
This is very confusing for me. Now I have to map every "character" to
KEY (like GDK_ISO_Left_Tab --> GDK_Tab), knowing that GTK or other
subsystem has made inverse operation already.
How can I remove this <shift> modification from keyval? Will
upper<>lower conversion be enough?
2. Where are the harwdare keycodes for GTK defined?
In each implementation of the underlying windowing systems used (X11,
Windows GDI, Mac OS X Quartz).
Should I define it for every platform myself? If not what's the purpose of this field?
I don't know what you mean with "define". The field is in an input
event, you should not change it. And as far as I know, there is seldom
any reason to look at this field.
By define I meant platform independent identification of every
physical key on the keyboard.
Can I use ASCII codes as in Windows? KEY_TAB = 0x09 etc? Will it work
under X11 & mac osx?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]