Some more comments
This commit is contained in:
parent
0745bdb6f9
commit
5ab2312201
@ -527,6 +527,7 @@ void scan_buttons()
|
|||||||
{
|
{
|
||||||
if (buttons[i].gm_keycode == KEY_COMBO)
|
if (buttons[i].gm_keycode == KEY_COMBO)
|
||||||
{
|
{
|
||||||
|
/* Sending press command for all combo keys */
|
||||||
for (int j = 0; j < 3; j++)
|
for (int j = 0; j < 3; j++)
|
||||||
{
|
{
|
||||||
set_key(buttons[i].combo_keycode[j], PRESSED);
|
set_key(buttons[i].combo_keycode[j], PRESSED);
|
||||||
@ -541,6 +542,7 @@ void scan_buttons()
|
|||||||
{
|
{
|
||||||
if (buttons[i].fn1_keycode == KEY_COMBO)
|
if (buttons[i].fn1_keycode == KEY_COMBO)
|
||||||
{
|
{
|
||||||
|
/* Sending press command for all combo keys */
|
||||||
for (int j = 0; j < 3; j++)
|
for (int j = 0; j < 3; j++)
|
||||||
{
|
{
|
||||||
set_key(buttons[i].combo_keycode[j], PRESSED);
|
set_key(buttons[i].combo_keycode[j], PRESSED);
|
||||||
@ -555,6 +557,7 @@ void scan_buttons()
|
|||||||
{
|
{
|
||||||
if (buttons[i].fn2_keycode == KEY_COMBO)
|
if (buttons[i].fn2_keycode == KEY_COMBO)
|
||||||
{
|
{
|
||||||
|
/* Sending press command for all combo keys */
|
||||||
for (int j = 0; j < 3; j++)
|
for (int j = 0; j < 3; j++)
|
||||||
{
|
{
|
||||||
set_key(buttons[i].combo_keycode[j], PRESSED);
|
set_key(buttons[i].combo_keycode[j], PRESSED);
|
||||||
@ -569,6 +572,7 @@ void scan_buttons()
|
|||||||
{
|
{
|
||||||
if (buttons[i].keycode == KEY_COMBO)
|
if (buttons[i].keycode == KEY_COMBO)
|
||||||
{
|
{
|
||||||
|
/* Sending press command for all combo keys */
|
||||||
for (int j = 0; j < 3; j++)
|
for (int j = 0; j < 3; j++)
|
||||||
{
|
{
|
||||||
set_key(buttons[i].combo_keycode[j], PRESSED);
|
set_key(buttons[i].combo_keycode[j], PRESSED);
|
||||||
@ -612,6 +616,7 @@ void scan_buttons()
|
|||||||
{
|
{
|
||||||
if (buttons[i].gm_keycode == KEY_COMBO)
|
if (buttons[i].gm_keycode == KEY_COMBO)
|
||||||
{
|
{
|
||||||
|
/* Sending release command for all combo keys */
|
||||||
for (int j = 0; j < 3; j++)
|
for (int j = 0; j < 3; j++)
|
||||||
{
|
{
|
||||||
set_key(buttons[i].combo_keycode[j], RELEASED);
|
set_key(buttons[i].combo_keycode[j], RELEASED);
|
||||||
@ -624,11 +629,13 @@ void scan_buttons()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
/* Sending release command for all combo keys */
|
||||||
for (int j = 0; j < 3; j++)
|
for (int j = 0; j < 3; j++)
|
||||||
{
|
{
|
||||||
set_key(buttons[i].combo_keycode[j], RELEASED);
|
set_key(buttons[i].combo_keycode[j], RELEASED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Sending release command for all other keycodes related to this button */
|
||||||
set_key(buttons[i].fn2_keycode, RELEASED);
|
set_key(buttons[i].fn2_keycode, RELEASED);
|
||||||
set_key(buttons[i].fn1_keycode, RELEASED);
|
set_key(buttons[i].fn1_keycode, RELEASED);
|
||||||
set_key(buttons[i].keycode, RELEASED);
|
set_key(buttons[i].keycode, RELEASED);
|
||||||
|
|||||||
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:1ca687b7b2ffa9f770a93ad1ba638ff7637378b2ada5036e26707c0d0d504c34
|
|
||||||
size 172734
|
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:541bbc39191bb4ff2a8a3d5f4d4957b841bc43a5f914dc44e62cdb7aff3e9ac6
|
||||||
|
size 528498
|
||||||
Loading…
x
Reference in New Issue
Block a user