mirror of
https://github.com/tuxedocomputers/tuxedo-touchpad-switch.git
synced 2025-01-18 11:41:10 +01:00
Clarify touchpad's available status
This commit is contained in:
parent
3f90c9c6c1
commit
303f8f2a35
1 changed files with 8 additions and 2 deletions
|
@ -113,8 +113,14 @@ int set_touchpad_state(int enabled) {
|
|||
result = EXIT_FAILURE;
|
||||
}
|
||||
else {
|
||||
// to enable touchpad send "0x03" as feature report nr.7 (0x07) to the touchpad hid device
|
||||
// to disable it send "0x030"
|
||||
// The two rightmost bits control the touchpad status
|
||||
// In order, they are:
|
||||
// 1. LED on, touchpad off
|
||||
// 2. clicks are off
|
||||
// so, the options are:
|
||||
// 0x00 LED on, touchpad off, touchpad click off
|
||||
// 0x01 LED off, touchpad on, touchpad click off
|
||||
// 0x03 LED off, touchpad on, touchpad click on
|
||||
char buffer[2] = {0x07, 0x00};
|
||||
if (enabled) {
|
||||
buffer[1] = 0x03;
|
||||
|
|
Loading…
Reference in a new issue