You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking at Open Fire's code. I've copied cursor.c, cursor.h and cursor.bm to my project and then I included the cursorCreate, cursorUpdate and cursorDestroy calls but nothing happens.
Maybe I missed something related to the Copper. Anyway it would be good to have an example of a mouse application in the showcase.
I'm now looking at code from openFire and it should work, perhaps there's some kind of regression.
The absolute bare minimum to process a mouse should be:
do a mouseCreate() / mouseDestroy() somewhere - on game create/destroy or gamestate create destroy or something
between them do mouseSetBounds() at least once
do a mouseProcess() periodically
after above steps mouseGetX() and mouseGetY() should return current x/y position of a mouse
then one can go crazy with rendering mouse cursor - it could be blitter based (blitRect, blitCopy, line drawing fns) or sprite based (there are no examples for using sprites!)
Is there any example of how to use a mouse?
I'm looking at Open Fire's code. I've copied cursor.c, cursor.h and cursor.bm to my project and then I included the cursorCreate, cursorUpdate and cursorDestroy calls but nothing happens.
Maybe I missed something related to the Copper. Anyway it would be good to have an example of a mouse application in the showcase.
Originally posted by @deuteros76 in #24 (comment)
Todo:
The text was updated successfully, but these errors were encountered: