Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve mouse manager #24

Closed
4 of 6 tasks
tehKaiN opened this issue Nov 18, 2017 · 3 comments
Closed
4 of 6 tasks

Improve mouse manager #24

tehKaiN opened this issue Nov 18, 2017 · 3 comments

Comments

@tehKaiN
Copy link
Member

tehKaiN commented Nov 18, 2017

Currently, mouse actions are collected using Intuition events. Also, current cursor codebase relies on OS stuff, which is conflicting with current custom copperlist implementation. There is a need to:

  • Modernize API by integrating cursor into copperlist,
  • Add ability to have 2 cursors on screen (vide Settlers split-screen mode),
  • Display as 3bpp or 4bpp sprite with configurable sprite channel index (indices),
  • Display as the only thing on sprite channel
  • Display as part of sprite list for channel
  • Grab cursor events directly for hardware - needed in Separate keyboard & mouse processing #13
@tehKaiN tehKaiN added this to the Departure from Intuition milestone Nov 18, 2017
@tehKaiN
Copy link
Member Author

tehKaiN commented Dec 18, 2017

Dual mice position and 3 button states support through hardware has been implemented on branch hardware-input. Display is still not done.

@tehKaiN tehKaiN removed this from the Remove Intuition milestone Dec 18, 2017
@tehKaiN tehKaiN added this to the Controller revamp milestone Apr 28, 2018
@deuteros76
Copy link

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.

@tehKaiN
Copy link
Member Author

tehKaiN commented Oct 29, 2023

Using mouse can be done with mouse manager. Displaying cursor can be done by sprite manager.

Until documentation is produced in #120, example code can be extracted from https://github.com/Last-Minute-Creations/slipgates and https://github.com/Last-Minute-Creations/openFire/ .

Displaying 4bpp cursor will be implemented in #212.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

2 participants