Shift key modifier code

[email protected]
Newsgroups gmane.comp.audio.supercollider.devel
Message-ID <[email protected]>
In the class library as it is, you can:

- Get the keycode (?) for the shift key: QKeyModifiers.shift -- but 
QKeyModifiers is undocumented so I have no idea what it is, really.

- Or, test a modifier code to see whether the shift key is pressed 
*possibly along with other keys*: modifier.isShift.

But if you want to test a modifier code to see if it is *only* the shift 
key, you have to hardcode 131072 into your code, or install wslib and use 
ModKey's onlyShift method.

Why isn't there, in the main library, at least a hook to get the modifier 
codes for individual modifier keys? Surely it's meaningful to know if only 
a single modifier is pressed, without having to do "mod.isShift and: { 
mod.isCtrl.not and: { you get the point } }"?

hjh

Sent with AquaMail for Android
http://www.aqua-mail.com




_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/
search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.