|
#1
|
|||
|
|||
assigning the mouse functionality to Keyboard events
Hi all,
I am beginner to game development and 3D environment. Recently I have gone through some tutorials(world demos) in viz and found the "duck court" demo interesting. I want to make a change to the existing code. Instead of using a mouse to target the ducks, I want the keyboard arrow keys to take care of that.. The code for the mouse looks like this: #Add a crosshair that is linked to the mouse viz.link(viz.Mouse , viz.addTexQuad(viz.SCREEN,texture=viz.add('crossha ir.png')) ) How should I assign the same to keyboard arrow keys. So that the crosshair moves all around the screen. Thanks in advance. You all have a great day ahead. Thank & Regards, Swami |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
assigning the mouse functionality to Keyboard events | jaffaaswami | Vizard | 2 | 10-07-2010 10:58 PM |
Warning mouse() -> Set mouse() of window | johannes2 | Vizard | 1 | 08-19-2010 02:11 PM |
how to remove velocity when mouse is disabled? | jvacare1 | Vizard | 2 | 02-18-2010 10:25 AM |
Navigating an avatar using mouse position(2D) in 3D environment | james007 | Vizard | 1 | 10-16-2009 11:29 AM |