Merge pull request #63 from KeenS/more-mouse-buttons

support more mouse buttons
pull/64/head
Takashi Kokubun 3 years ago committed by GitHub
commit 276455c5f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -10,7 +10,8 @@ use std::fs::read_dir;
use std::os::unix::ffi::OsStrExt;
use std::process;
static MOUSE_BTNS: [&str; 14] = [
static MOUSE_BTNS: [&str; 20] = [
"BTN_MISC",
"BTN_0",
"BTN_1",
"BTN_2",
@ -21,10 +22,15 @@ static MOUSE_BTNS: [&str; 14] = [
"BTN_7",
"BTN_8",
"BTN_9",
"BTN_MOUSE",
"BTN_LEFT",
"BTN_MIDDLE",
"BTN_RIGHT",
"BTN_MIDDLE",
"BTN_SIDE",
"BTN_EXTRA",
"BTN_FORWARD",
"BTN_BACK",
"BTN_TASK",
];
// Credit: https://github.com/mooz/xkeysnail/blob/bf3c93b4fe6efd42893db4e6588e5ef1c4909cfb/xkeysnail/output.py#L10-L32

Loading…
Cancel
Save