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

Mouse support #127

Open
mattgodbolt opened this issue Sep 25, 2016 · 5 comments
Open

Mouse support #127

mattgodbolt opened this issue Sep 25, 2016 · 5 comments

Comments

@mattgodbolt
Copy link
Owner

No description provided.

@richard-broadhurst
Copy link

richard-broadhurst commented Sep 27, 2016

The idea is to have the mouse position in the window / "screen" scaled 0..&FFFF be the values returned by the first two A2D channels with the two mouse buttons being the two fire buttons.
This would allow the mouse to be used as a paddle for some games and an analogue joystick for things like basic drawing packages which worked with the analogue joystick.

@richard-broadhurst
Copy link

A further option may be to support AMX style mice, but this is tricky, as the input is basically X+=1, X-=1, Y+=1 or Y-=1 which is OK if the mouse is hidden and locked to the emulator window as it can be re-positioned to the middle after each movement is captured, but not great for WIMP environment where you can't then use the mouse.
This feature maybe better reserved for a stand-a-lone emulator with full screen emulation.

@oneswitch
Copy link

You have this working already for touch-screen emulation. E.g. for https://bbc.godbolt.org/?autoboot&disc=https://dl.dropboxusercontent.com/s/39mclkwmu1j4gj1/Microvitec-Touchtec-501.ssd?dl=0 - Just a quick line to say, please don't drop this brilliant functionality. :)

@Spongman
Copy link

maybe helpful: https://developer.mozilla.org/en-US/docs/Web/API/Pointer_Lock_API allows you to turn off the host cursor, and yields relative mouse movement.

@oneswitch
Copy link

oneswitch commented May 27, 2021 via email

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

No branches or pull requests

4 participants