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

keyboard/joystick input #3

Open
lucasw opened this issue Jun 20, 2018 · 6 comments
Open

keyboard/joystick input #3

lucasw opened this issue Jun 20, 2018 · 6 comments

Comments

@lucasw
Copy link
Owner

lucasw commented Jun 20, 2018

Detecting special keys looks easy, but is there an example of reading other keys?

Actually it is easy to detect the first keypress, then it needs to be cleared or otherwise it continues to report as pressed?

@lucasw
Copy link
Owner Author

lucasw commented Jun 20, 2018

Is there an example in https://github.com/alpine9000/amiga_examples ?
No it looks mainly graphics oriented.

@lucasw
Copy link
Owner Author

lucasw commented Jun 20, 2018

@lucasw
Copy link
Owner Author

lucasw commented Jun 20, 2018

https://github.com/keirf/Amiga-Stuff/blob/master/systest/keyboard.c

$bfec01  CIAA serial data register

@lucasw
Copy link
Owner Author

lucasw commented Jun 20, 2018

http://amiga-dev.wikidot.com/hardware:intenar - look at use of INTENA $dff09a

@lucasw
Copy link
Owner Author

lucasw commented Jun 21, 2018

Debugging with fs-uae

fs-uae  Documents/FS-UAE/Configurations/fsuae_config.fs-uae --load_state=1 --console_debugger=1

Then F12 d to stop execution and bring up the debugger.

? lists commands

z steps forward, but not clear where in own program it is.

Fork of uae with more useful debugger:
http://eab.abime.net/showthread.php?t=82187

Good debugger instructions:
http://eab.abime.net/showthread.php?t=70007

have instruction like clr.w $100 before the code you need to debug and use memwatch point to break when $100 is accessed (for example "w 0 100 2")

@lucasw lucasw changed the title keyboard input keyboard/joystick input Jun 21, 2018
@lucasw
Copy link
Owner Author

lucasw commented Jun 21, 2018

Giving up on keyboard, just use joystick for now- the default is that the arrow keys and right alt and ctrl are the joystick 1 (the second joy/mouse).

lucasw added a commit that referenced this issue Jun 21, 2018
…ssible, but don't have up and down working, just left and right #3
lucasw added a commit that referenced this issue Jun 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant