mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 18:20:23 +00:00
[API CHANGE] New API call: sysadm/moused, action="get_tap_to_click"
No other input arguments
This returns the information about the current settings of "tap-to-click" for laptop touchpads.
REST Request (example):
-------------------------------
PUT /sysadm/moused
{
"action" : "get_tap_to_click"
}
WebSocket Request:
-------------------------------
{
"args" : {
"action" : "get_tap_to_click"
},
"name" : "moused",
"namespace" : "sysadm",
"id" : "fooid"
}
Response:
-------------------------------
{
"args": {
"get_tap_to_click": {
"enabled": "unavailable",
"timeout": "125000",
"using_synaptics": "false"
}
},
"id": "fooid",
"name": "response",
"namespace": "sysadm"
}
This commit is contained in:
@@ -1282,7 +1282,11 @@ RestOutputStruct::ExitCode WebSocket::EvaluateSysadmMousedRequest(const QJsonVal
|
||||
outobj = sysadm::moused::enableDevice(in_args.toObject());
|
||||
}else if(action == "set_device_inactive"){
|
||||
outobj = sysadm::moused::disableDevice(in_args.toObject());
|
||||
}
|
||||
}else if(action == "get_tap_to_click"){
|
||||
outobj = sysadm::moused::tapToClick();
|
||||
}/*else if(action == "set_tap_to_click"){
|
||||
|
||||
}*/
|
||||
|
||||
//check return structure for validity
|
||||
if(!outobj.keys().isEmpty()){
|
||||
|
||||
Reference in New Issue
Block a user