Commit graph

6 commits

Author SHA1 Message Date
da42dc1f6a fixes so it builds on stable rust
i defaulted my toolchain at some point oops
2024-08-05 00:26:42 -04:00
cfbbc37f8a more code cleanup, add a stub implementation of the mouse input device 2024-08-04 21:23:24 -04:00
a7544cb64d code cleanup
- make joypad a directory module, split retropad implementation into new module (but re-export it). also rename joypad to InputDevice

- remove spurious retro_reset (it's not needed and in fact crashes some cores)

- rename frontend input device APIs, add one for removing (unplugging) a device
2024-08-04 20:26:30 -04:00
ad634bf1fa retro_frontend: actually implement variable storage
I'm not certain I'll keep it like this (it should probably be in `FrontendInterface`, so the driver code can serialize how it sees fit, rather than us), but it works to get it done.

There's also a lot of janky code I need to clean up before I'm really happy about it.
2024-08-04 06:59:31 -04:00
d4329be132 refactoring
Removes the frontend glue module, instead the frontend state struct is allowed to be created by users. This doesn't solve Rust 2024 problems (although, since we're building c++ code anyways, we can always just stash the pointer there) but it's much cleaner.Some stuff is made to use pointers, this is just because I don't want to mess around with lifetime stuff right now (it all lasts as long as the app anyways)
2024-08-04 02:02:29 -04:00
6f829c5252 Initial commit 2024-08-02 03:20:29 -04:00