fvdhoef / aquarius-plus

Official Aquarius+ repository
MIT License
45 stars 8 forks source link

Add debugger keys #88

Closed paulscottrobson closed 4 weeks ago

paulscottrobson commented 4 weeks ago

I would like the option (command line switchable) for the unused function keys (F7-F12) to be able to operate the buttons in the CPU State window.

I would also like to volunteer myself to do this :) I have looked at the code and can see how it can be done (I think !) without having, I believe, any other effect on the emulator, (extracting the code attached to the buttons to seperate methods and invoking them from the keyboard input queue)

There doesn't appear to be a simple way of doing this in the way that you can bind a button to a menu action or button in many GUIs.

If you are okay with this, I will fork the repo (or you can add me as a collaborator, as you wish) and do the work for review via the usual system.

fvdhoef commented 4 weeks ago

I was working on the emulator myself to fix some Linux issues, so I have also picked up your request. Whenever the CPU state window is visible the following keyboard shortcuts are available (you can also see these by hovering the buttons):

This will be available in the next release, but for now I have updated the development build, which you can find here: https://github.com/fvdhoef/aquarius-plus/releases/tag/V1.dev

ImGUI actually has an easy way to bind these keys to a button, so it was very little work. If you are interested you can look at the commit: https://github.com/fvdhoef/aquarius-plus/commit/ebccc9afaa32e3a20b292bbdcda81663d289398c

paulscottrobson commented 4 weeks ago

Excellent :)