Skip to content

Commit 64b84d7

Browse files
committed
add note on Record Keyboard Controller
1 parent 54b9a80 commit 64b84d7

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

SerialPrograms/Source/NintendoSwitch/Programs/NintendoSwitch_RecordKeyboardController.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,12 @@ RecordKeyboardController::RecordKeyboardController()
7575
LockMode::UNLOCK_WHILE_RUNNING,
7676
false
7777
)
78+
, USAGE_NOTE(
79+
"NOTE: Each keypress has a small amount of error when recorded/played back (approximately 8-15 ms). "
80+
"I recommend fewer long button presses instead of many short button presses. "
81+
)
7882
{
83+
PA_ADD_OPTION(USAGE_NOTE);
7984
PA_ADD_OPTION(MODE);
8085
PA_ADD_OPTION(FILE_NAME);
8186
PA_ADD_OPTION(LOOP);

SerialPrograms/Source/NintendoSwitch/Programs/NintendoSwitch_RecordKeyboardController.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "Common/Cpp/Options/BooleanCheckBoxOption.h"
1313
#include "Common/Cpp/Options/SimpleIntegerOption.h"
1414
#include "Common/Cpp/Options/StringOption.h"
15+
#include "Common/Cpp/Options/StaticTextOption.h"
1516
//#include "Controllers/KeyboardInput/KeyboardInput.h"
1617
#include "NintendoSwitch/NintendoSwitch_SingleSwitchProgram.h"
1718

@@ -102,6 +103,8 @@ class RecordKeyboardController
102103
SimpleIntegerOption<uint32_t> WAIT;
103104
BooleanCheckBoxOption GENERATE_CPP_CODE_AFTER_RECORDING;
104105

106+
StaticTextOption USAGE_NOTE;
107+
105108
std::vector<ControllerStateSnapshot> m_controller_history;
106109

107110

0 commit comments

Comments
 (0)