View Full Version : keypad?
jbills
04-30-2008, 08:37 PM
paul - do you happen to know the syntax to access the keypad numbers?
paulm
05-01-2008, 07:52 AM
I looked, and there doesn't seem to be a separate mapping for the numeric keypad. But I'll ask around.
Note that you can get more binds by combining Ctrl, Alt, and Shift with some of the existing ones.
jbills
08-07-2008, 05:01 PM
I was looking through some Qt docs on the trolltech site and found this:
enum Qt::KeyboardModifier
flags Qt::KeyboardModifiers
This enum describes the modifier keys.
Note: On Mac OS X, the ControlModifier value corresponds to the Command keys on the Macintosh keyboard, and the MetaModifier value corresponds to the Control keys.
ConstantValueDescription Qt::NoModifier0x00000000No modifier key is pressed.
Qt::ShiftModifier0x02000000A Shift key on the keyboard is pressed.
Qt::ControlModifier0x04000000A Ctrl key on the keyboard is pressed.
Qt::AltModifier0x08000000An Alt key on the keyboard is pressed.
Qt::MetaModifier0x10000000A Meta key on the keyboard is pressed.
Qt::KeypadModifier0x20000000A keypad button is pressed.
The KeyboardModifiers type is a typedef for QFlags (http://doc.trolltech.com/4.1/qflags.html)<KeyboardModifier>. It stores an OR combination of KeyboardModifier values.
See also MouseButton (http://doc.trolltech.com/4.1/qt.html#MouseButton-enum) and Modifier (http://doc.trolltech.com/4.1/qt.html#Modifier-enum)
--------------------------------
so it appears it's in there, although i'm not sure this gives us access to it. would it be worth an email to trolltech to see if these can be exposed to us somehow? opening up the keypad for binding would create a lot of possibilities.
paulm
08-07-2008, 05:42 PM
There's no way to mark a key as being on the Keypad, as far as I can see through their keybind system.
However, can use Meta, Ctrl, Alt, and Shift in your own keybinds.
jbills
08-07-2008, 05:49 PM
keypad is the holy grail, it opens up that right side. Used to use it with commotion all the time and I have a lot of ideas if we could get it going. those little usb keypads used for gaming could become roto/paint hotkey hubs.
too bad. eh, something to keep in the back of your mind if it's ever exposed.
btw - what is meta?
paulm
08-07-2008, 06:59 PM
I'm looking into it.
Meta is a Unix thing. I think on Sun keyboards there is a key called a Meta key. It's not common.
vBulletin v3.5.3, Copyright ©2000-2010, Jelsoft Enterprises Ltd.