Jul-25-2017, 01:26 PM
So I've made a little thing to change my mouse's icon. It happens once in a blue moon, so I know it works. But it doesn't work 100% of the time.... which seems impossible.
There doesn't seem to be a way to get pygame to look at what image is currently being used as the mouse.
The fact that the prints both work perfectly but the image only switches once out of 79 clicks is extremely frustrating.
Anyone have any ideas for me?
I've tried this several different ways. All of the ways have negatives. Including slowing the program down to unresponding.
It's as if pygame.event.get() is so slow that it just forgets what it's trying to get done. If I put the mouse_cursor
This is the code that I use to get the image to change
gameDisplay = pygame.display.set_mode((display_w,display_h))
gameDisplay.blit(mouse_cursor, pygame.mouse.get_pos())
both are in the spots they should be.
There doesn't seem to be a way to get pygame to look at what image is currently being used as the mouse.
The fact that the prints both work perfectly but the image only switches once out of 79 clicks is extremely frustrating.
Anyone have any ideas for me?
I've tried this several different ways. All of the ways have negatives. Including slowing the program down to unresponding.
It's as if pygame.event.get() is so slow that it just forgets what it's trying to get done. If I put the mouse_cursor
This is the code that I use to get the image to change
gameDisplay = pygame.display.set_mode((display_w,display_h))
gameDisplay.blit(mouse_cursor, pygame.mouse.get_pos())
both are in the spots they should be.