View Single Post
  #1  
Old 12-15-2011, 06:59 AM
madeinjava madeinjava is offline
Member
 
Join Date: Dec 2011
Posts: 5
Arrow Keyboard Shorcut

Hi all,

I need to make some keyboard shortcut (instead a single button) into my VR world. Its work fine when only using single button shortcut like this:
...
def onKeyDown(key):
...
if key == 'c':
print 'Hello World!'
...

However I want to assign a standard windows shortcut, like: Ctrl+z, Ctrl+v, or maybe just 2 or 3 button combinations ('a'+'b' button, etc.)etc.
How I can implement this? I tried using:
...
if key == viz.key.allDown(['a','b']):
print 'Hello World!'
...
I tried using anyDown() as well but none of this works.
Any suggestion what should I do? or I made a mistake there?

Thanks alot!
Reply With Quote