I’ve read about how there is no custom cursor support for osx, and decided to try using an onscreenimage with the x and y mouse cords. Here’s what came out(picture below):
self.cursor = OnscreenImage(
image = 'models/imgs/cursor.png',
pos = (self.mouseX, 0, self.mouseY), # mouseX and mouseY are just 0,0
scale = .005
)
self.cursor.setTransparency(TransparencyAttrib.MAlpha)
self.cursor.setPos(1,0,1)
base.mouseWatcherNode.setGeometry(self.cursor.node())
Where the red square is the hardware cursor, and the cursor.png is what the cursor is supposed to look like. The correct location of the cursor is the red box, and location of the onscreenimage is the white cursor. What happened here? Any way to fix it?
I couldn’t actually show the hardware cursor because I had to take the picture