1.0.0 Release
Features
- Recording of gameplay. This initial release records input for controller 1 on every frame. (In the future, it will be able to record any numbers of controller)
- Recording is toggled by using + and - at the same time.
- If you're in a game, the recording will go to /input-recorder/titleID/timestamp.record
- If you're not currently running a game (i.e. hos menu), or module isn't enable to detect which game you are running, the recording will go to /input-recorder/unknown/
Record format
Each frame is recorded on a line using this format:
| HidControllerID | HidControllerKeys | JoystickPosition.dx | JoystickPosition.dy | JoystickPosition.dx | JoystickPosition.dy |
The data regarding the recording is:
- HidControllerID which controller pressed the following buttons
- HidControllerKeys bitmask of which keys are held (https://switchbrew.github.io/libnx/hid_8h.html#ae829d22473d2e99ee1157f6e2d526b95)
- JoystickPosition.dx left joystick x position
- JoystickPosition.dy left joystick y position
- JoystickPosition.dx right joystick x position
- JoystickPosition.dy right joystick y position
Example:
10 2 0 0 0 0
10 2 0 0 0 0
10 2 0 0 0 0
10 0 -445 -4118 0 0
10 524288 -987 -24665 0 0
10 524288 -1023 -32751 0 0
10 524288 -927 -32753 0 0
10 524288 -897 -32754 0 0
(Once the code is tweaked to record several controllers they will just be appended to the same line.
So basically, just read a line as several 6-entry tuple.)
How to install
Just merge the atmosphere folder in here with the one on your sdcard.
This sysmodule will be loaded at boot time.