term: re-order switch-cases to be in X button order

This commit is contained in:
Daniel Eklöf 2019-08-05 18:59:12 +02:00
parent c15d546740
commit 528ee9925c
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -385,12 +385,12 @@ linux_mouse_button_to_x(int button)
{ {
switch (button) { switch (button) {
case BTN_LEFT: return 1; case BTN_LEFT: return 1;
case BTN_RIGHT: return 3;
case BTN_MIDDLE: return 2; case BTN_MIDDLE: return 2;
case BTN_SIDE: return 8; case BTN_RIGHT: return 3;
case BTN_EXTRA: return 9;
case BTN_BACK: return 4; case BTN_BACK: return 4;
case BTN_FORWARD: return 5; case BTN_FORWARD: return 5;
case BTN_SIDE: return 8;
case BTN_EXTRA: return 9;
case BTN_TASK: return -1; /* TODO: ??? */ case BTN_TASK: return -1; /* TODO: ??? */
default: default: