View Full Version : mouse cursor size
haohaoxuexi1
12-28-2016, 09:45 AM
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
haohaoxuexi1
01-05-2017, 09:07 AM
anyone knows
You could use a custom texture for the cursor. The following code hides the mouse cursor and adds a crosshair:
#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 )
vBulletin® v3.8.7, Copyright ©2000-2024, vBulletin Solutions, Inc.