#1
|
|||
|
|||
mouse cursor size
when I set up the mouse ICON using win32gui like the code below, is that possible to change the size of the cursor in the window. I want to make it bigger.
handCursor = win32gui.LoadCursor(0,win32con.IDC_HAND) viz.mouse.setCursor(handCursor) thx |
#2
|
|||
|
|||
anyone knows
|
#3
|
|||
|
|||
You could use a custom texture for the cursor. The following code hides the mouse cursor and adds a crosshair:
Code:
#Disable mouse navigation and hide cursor viz.mouse.setOverride(True) viz.mouse.setVisible(False) #Add a crosshair that is linked to the mouse crosshair = viz.addTexQuad(viz.ORTHO, texture=viz.add('crosshair.png'), size=64) viz.link( viz.Mouse , crosshair, srcFlag=viz.WINDOW_PIXELS ) |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mouse bug in V3 and V4 | Renato Lima | Vizard | 2 | 05-11-2011 06:38 PM |
Mouse event: how to detect no mouse move event, how to set mouse position? | Zhi | Vizard | 3 | 04-11-2011 06:25 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 |