Debugger comments actualized (#17385)

* Comments actualized

* Event name fixed

* Updated cpu.stepping description
This commit is contained in:
Nemoumbra authored and GitHub committed 2023-05-23 08:46:49 +02:00
1 parent 71511c845f
commit 7517b7a4e8
4 files changed
+8 -6

No files matched your search

+3 -3
View File
@@ -128,7 +128,7 @@ DebuggerSubscriber *WebSocketInputInit(DebuggerEventHandlerMap &map) {
// - back: back button on headset.
// - playpause: play/pause button on headset.
//
// Empty response.
// Response (same event name) with no extra data.
void WebSocketInputState::ButtonsSend(DebuggerRequest &req) {
const JsonNode *jsonButtons = req.data.get("buttons");
if (!jsonButtons) {
@@ -166,7 +166,7 @@ void WebSocketInputState::ButtonsSend(DebuggerRequest &req) {
// - button: required string indicating button name (see input.buttons.send.)
// - duration: optional integer indicating frames to press for, defaults to 1.
//
// Empty response once released.
// Response (same event name) with no extra data once released.
void WebSocketInputState::ButtonsPress(DebuggerRequest &req) {
std::string button;
if (!req.ParamString("button", &button))
@@ -238,7 +238,7 @@ static bool AnalogValue(DebuggerRequest &req, float *value, const char *name) {
// - y: required number from -1.0 to 1.0.
// - stick: optional string, either "left" (default) or "right".
//
// Empty response.
// Response (same event name) with no extra data.
void WebSocketInputState::AnalogSend(DebuggerRequest &req) {
std::string stick = "left";
if (!req.ParamString("stick", &stick, DebuggerParamType::OPTIONAL))