# transparent 8x8 cursor with the hot-spot at (4,4) There may be some trickiness around getting the "click" hot-spot in the right location, but this could be achieved by setting a transparent cursor, with the hot-spot at the position to match the custom bitmap. This method allows the PyGame program to have any sort of bitmap for the cursor. # paint cursor at mouse the current location MANUAL_CURSOR = ('finger_cursor_16.png').convert_alpha() I guess this is what suggests in his answer, so maybe this is just an elaboration.įirst Hide the mouse-cursor, then every time the screen-frame is updated, "manually" paint the cursor: _visible(False) # hide the cursor Since asked in a comment about another way, I'd like to present a different answer, and this is drawing the cursor manually.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |