Uzebox / uzebox

A retro-minimalist game console engine for the ATMega644
http://uzebox.org
125 stars 42 forks source link

Peripheral Support(Uzem, Packrom, Whack a Mole, more) #110

Closed weber21w closed 1 year ago

weber21w commented 1 year ago

Packrom did not actually have support for UzeROM "mouse" variable. Turned this into a bitfield of "psupport" for peripherals supported by a ROM. Used 1 reserved byte for "pdefault", which is a device that should be default on in the emulator at start. Now can add something like this to gameinfo.properties: mouse=support keyboard=default multitap=support esp8266=default

Which lets the user know on ROM load all supported peripherals(which they can control via hotkey), and enables keyboard+esp8266 as on by default. This save presses of a hotkey(the user may not know) for games that clearly have an obvious optimum startup state in the emulator(Whack a Mole, Calculator, Solitaire, etc.).

Added support for these bitfields in Uzem. The same support has been added to CUzeBox in another branch.