mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
PR review changes: Modify requests names
Changes requests names to "TriggerHotkeyByName" and "TriggerHotkeyBySequence"
This commit is contained in:
@ -43,8 +43,8 @@ const QHash<QString, RpcMethodHandler> WSRequestHandler::messageMap {
|
|||||||
|
|
||||||
{ "BroadcastCustomMessage", &WSRequestHandler::BroadcastCustomMessage },
|
{ "BroadcastCustomMessage", &WSRequestHandler::BroadcastCustomMessage },
|
||||||
|
|
||||||
{ "ProcessHotkeyByName", &WSRequestHandler::ProcessHotkeyByName },
|
{ "TriggerHotkeyByName", &WSRequestHandler::TriggerHotkeyByName },
|
||||||
{ "ProcessHotkeyByCombination", &WSRequestHandler::ProcessHotkeyByCombination },
|
{ "TriggerHotkeyBySequence", &WSRequestHandler::TriggerHotkeyBySequence },
|
||||||
|
|
||||||
{ "SetCurrentScene", &WSRequestHandler::SetCurrentScene },
|
{ "SetCurrentScene", &WSRequestHandler::SetCurrentScene },
|
||||||
{ "GetCurrentScene", &WSRequestHandler::GetCurrentScene },
|
{ "GetCurrentScene", &WSRequestHandler::GetCurrentScene },
|
||||||
|
@ -61,8 +61,8 @@ class WSRequestHandler {
|
|||||||
|
|
||||||
RpcResponse BroadcastCustomMessage(const RpcRequest&);
|
RpcResponse BroadcastCustomMessage(const RpcRequest&);
|
||||||
|
|
||||||
RpcResponse ProcessHotkeyByName(const RpcRequest&);
|
RpcResponse TriggerHotkeyByName(const RpcRequest&);
|
||||||
RpcResponse ProcessHotkeyByCombination(const RpcRequest&);
|
RpcResponse TriggerHotkeyBySequence(const RpcRequest&);
|
||||||
|
|
||||||
RpcResponse SetCurrentScene(const RpcRequest&);
|
RpcResponse SetCurrentScene(const RpcRequest&);
|
||||||
RpcResponse GetCurrentScene(const RpcRequest&);
|
RpcResponse GetCurrentScene(const RpcRequest&);
|
||||||
|
@ -356,7 +356,7 @@ RpcResponse WSRequestHandler::OpenProjector(const RpcRequest& request) {
|
|||||||
* @category general
|
* @category general
|
||||||
* @since unreleased
|
* @since unreleased
|
||||||
*/
|
*/
|
||||||
RpcResponse WSRequestHandler::ProcessHotkeyByName(const RpcRequest& request) {
|
RpcResponse WSRequestHandler::TriggerHotkeyByName(const RpcRequest& request) {
|
||||||
const char* name = obs_data_get_string(request.parameters(), "name");
|
const char* name = obs_data_get_string(request.parameters(), "name");
|
||||||
|
|
||||||
obs_hotkey_t* hk = Utils::FindHotkeyByName(name);
|
obs_hotkey_t* hk = Utils::FindHotkeyByName(name);
|
||||||
@ -378,7 +378,7 @@ RpcResponse WSRequestHandler::ProcessHotkeyByName(const RpcRequest& request) {
|
|||||||
* @category general
|
* @category general
|
||||||
* @since unreleased
|
* @since unreleased
|
||||||
*/
|
*/
|
||||||
RpcResponse WSRequestHandler::ProcessHotkeyByCombination(const RpcRequest& request) {
|
RpcResponse WSRequestHandler::TriggerHotkeyBySequence(const RpcRequest& request) {
|
||||||
if (!request.hasField("key")) {
|
if (!request.hasField("key")) {
|
||||||
return request.failed("Missing request key parameter");
|
return request.failed("Missing request key parameter");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user