Update key name for rumble forwarding
This commit is contained in:
@@ -571,7 +571,7 @@ namespace config {
|
|||||||
true, // high resolution scrolling
|
true, // high resolution scrolling
|
||||||
true, // native pen/touch support
|
true, // native pen/touch support
|
||||||
false, // enable input only mode
|
false, // enable input only mode
|
||||||
true, // enable_rumble_messages_to_controllers
|
true, // forward_rumble
|
||||||
};
|
};
|
||||||
|
|
||||||
sunshine_t sunshine {
|
sunshine_t sunshine {
|
||||||
@@ -1287,7 +1287,7 @@ namespace config {
|
|||||||
bool_f(vars, "envvar_compatibility_mode", sunshine.envvar_compatibility_mode);
|
bool_f(vars, "envvar_compatibility_mode", sunshine.envvar_compatibility_mode);
|
||||||
bool_f(vars, "notify_pre_releases", sunshine.notify_pre_releases);
|
bool_f(vars, "notify_pre_releases", sunshine.notify_pre_releases);
|
||||||
bool_f(vars, "legacy_ordering", sunshine.legacy_ordering);
|
bool_f(vars, "legacy_ordering", sunshine.legacy_ordering);
|
||||||
bool_f(vars, "enable_rumble_messages_to_controllers", input.enable_rumble_messages_to_controllers);
|
bool_f(vars, "forward_rumble", input.forward_rumble);
|
||||||
|
|
||||||
int port = sunshine.port;
|
int port = sunshine.port;
|
||||||
int_between_f(vars, "port"s, port, {1024 + nvhttp::PORT_HTTPS, 65535 - rtsp_stream::RTSP_SETUP_PORT});
|
int_between_f(vars, "port"s, port, {1024 + nvhttp::PORT_HTTPS, 65535 - rtsp_stream::RTSP_SETUP_PORT});
|
||||||
|
|||||||
@@ -211,7 +211,7 @@ namespace config {
|
|||||||
bool native_pen_touch;
|
bool native_pen_touch;
|
||||||
|
|
||||||
bool enable_input_only_mode;
|
bool enable_input_only_mode;
|
||||||
bool enable_rumble_messages_to_controllers;
|
bool forward_rumble;
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace flag {
|
namespace flag {
|
||||||
|
|||||||
@@ -327,8 +327,8 @@ namespace platf {
|
|||||||
* @param smallMotor The small motor.
|
* @param smallMotor The small motor.
|
||||||
*/
|
*/
|
||||||
void rumble(target_t::pointer target, std::uint8_t largeMotor, std::uint8_t smallMotor) {
|
void rumble(target_t::pointer target, std::uint8_t largeMotor, std::uint8_t smallMotor) {
|
||||||
// config::input.enable_rumble_messages_to_controllers - Default is true so ignore rumble messages when false
|
// config::input.forward_rumble - Default is true so ignore rumble messages when false
|
||||||
if( config::input.enable_rumble_messages_to_controllers == false ) {
|
if( config::input.forward_rumble == false ) {
|
||||||
// Do nothing; just return
|
// Do nothing; just return
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -176,7 +176,7 @@
|
|||||||
"high_resolution_scrolling": "enabled",
|
"high_resolution_scrolling": "enabled",
|
||||||
"native_pen_touch": "enabled",
|
"native_pen_touch": "enabled",
|
||||||
"enable_input_only_mode": "disabled",
|
"enable_input_only_mode": "disabled",
|
||||||
"enable_rumble_messages_to_controllers": "enabled",
|
"forward_rumble": "enabled",
|
||||||
"keybindings": "[0x10,0xA0,0x11,0xA2,0x12,0xA4]", // todo: add this to UI
|
"keybindings": "[0x10,0xA0,0x11,0xA2,0x12,0xA4]", // todo: add this to UI
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -182,9 +182,9 @@ const config = ref(props.config)
|
|||||||
<hr>
|
<hr>
|
||||||
<Checkbox v-if="platform === 'windows'"
|
<Checkbox v-if="platform === 'windows'"
|
||||||
class="mb-3"
|
class="mb-3"
|
||||||
id="enable_rumble_messages_to_controllers"
|
id="forward_rumble"
|
||||||
locale-prefix="config"
|
locale-prefix="config"
|
||||||
v-model="config.enable_rumble_messages_to_controllers"
|
v-model="config.forward_rumble"
|
||||||
default="true"
|
default="true"
|
||||||
></Checkbox>
|
></Checkbox>
|
||||||
|
|
||||||
|
|||||||
@@ -255,8 +255,6 @@
|
|||||||
"enable_discovery_desc": "When disabled, you'll need to manually enter host IP on the client to pair.",
|
"enable_discovery_desc": "When disabled, you'll need to manually enter host IP on the client to pair.",
|
||||||
"enable_input_only_mode": "Enable Input Only Mode",
|
"enable_input_only_mode": "Enable Input Only Mode",
|
||||||
"enable_input_only_mode_desc": "Add an Input Only app entry. When enabled, the app list will only show the current running app and the Input Only entry when streaming. The Input Only entry will not receive any image or audio. Useful for operating the desktop on TV or connecting peripherals which the TV doesn't support with a phone.",
|
"enable_input_only_mode_desc": "Add an Input Only app entry. When enabled, the app list will only show the current running app and the Input Only entry when streaming. The Input Only entry will not receive any image or audio. Useful for operating the desktop on TV or connecting peripherals which the TV doesn't support with a phone.",
|
||||||
"enable_rumble_messages_to_controllers": "Enable Rumble Messages to Controllers",
|
|
||||||
"enable_rumble_messages_to_controllers_desc": "Enable Rumble Messages to Controllers",
|
|
||||||
"enable_pairing": "Enable Pairing",
|
"enable_pairing": "Enable Pairing",
|
||||||
"enable_pairing_desc": "Enable pairing for the Moonlight client. This allows the client to authenticate with the host and establish a secure connection.",
|
"enable_pairing_desc": "Enable pairing for the Moonlight client. This allows the client to authenticate with the host and establish a secure connection.",
|
||||||
"encoder": "Force a Specific Encoder",
|
"encoder": "Force a Specific Encoder",
|
||||||
@@ -276,6 +274,8 @@
|
|||||||
"file_apps_desc": "The file where current apps of Apollo are stored.",
|
"file_apps_desc": "The file where current apps of Apollo are stored.",
|
||||||
"file_state": "State File",
|
"file_state": "State File",
|
||||||
"file_state_desc": "The file where current state of Apollo is stored",
|
"file_state_desc": "The file where current state of Apollo is stored",
|
||||||
|
"forward_rumble": "Forward Rumble Messages",
|
||||||
|
"forward_rumble_desc": "Forward Rumble Messages to clients",
|
||||||
"gamepad": "Emulated Gamepad Type",
|
"gamepad": "Emulated Gamepad Type",
|
||||||
"gamepad_auto": "Automatic selection options",
|
"gamepad_auto": "Automatic selection options",
|
||||||
"gamepad_desc": "Choose which type of gamepad to emulate on the host",
|
"gamepad_desc": "Choose which type of gamepad to emulate on the host",
|
||||||
|
|||||||
@@ -269,6 +269,8 @@
|
|||||||
"file_apps_desc": "Apollo 保存应用程序配置的文件。",
|
"file_apps_desc": "Apollo 保存应用程序配置的文件。",
|
||||||
"file_state": "实时状态文件",
|
"file_state": "实时状态文件",
|
||||||
"file_state_desc": "Apollo 保存当前状态的文件",
|
"file_state_desc": "Apollo 保存当前状态的文件",
|
||||||
|
"forward_rumble": "转发手柄震动",
|
||||||
|
"forward_rumble_desc": "向客户端转发手柄震动信息",
|
||||||
"gamepad": "模拟游戏手柄类型",
|
"gamepad": "模拟游戏手柄类型",
|
||||||
"gamepad_auto": "自动选择选项",
|
"gamepad_auto": "自动选择选项",
|
||||||
"gamepad_desc": "选择要在主机上模拟的游戏手柄类型",
|
"gamepad_desc": "选择要在主机上模拟的游戏手柄类型",
|
||||||
|
|||||||
Reference in New Issue
Block a user