spice-input.c (e12b2a4fab75c0771ed21ac6ce06120cbb27b68e) | spice-input.c (7fb1cf1606c78c9d5b538f29176fd5a101726a9d) |
---|---|
1/* 2 * Copyright (C) 2010 Red Hat, Inc. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License as 6 * published by the Free Software Foundation; either version 2 or 7 * (at your option) version 3 of the License. 8 * --- 93 unchanged lines hidden (view full) --- 102 uint32_t last_bmask; 103 Notifier mouse_mode; 104 bool absolute; 105} QemuSpicePointer; 106 107static void spice_update_buttons(QemuSpicePointer *pointer, 108 int wheel, uint32_t button_mask) 109{ | 1/* 2 * Copyright (C) 2010 Red Hat, Inc. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License as 6 * published by the Free Software Foundation; either version 2 or 7 * (at your option) version 3 of the License. 8 * --- 93 unchanged lines hidden (view full) --- 102 uint32_t last_bmask; 103 Notifier mouse_mode; 104 bool absolute; 105} QemuSpicePointer; 106 107static void spice_update_buttons(QemuSpicePointer *pointer, 108 int wheel, uint32_t button_mask) 109{ |
110 static uint32_t bmap[INPUT_BUTTON_MAX] = { | 110 static uint32_t bmap[INPUT_BUTTON__MAX] = { |
111 [INPUT_BUTTON_LEFT] = 0x01, 112 [INPUT_BUTTON_MIDDLE] = 0x04, 113 [INPUT_BUTTON_RIGHT] = 0x02, 114 [INPUT_BUTTON_WHEEL_UP] = 0x10, 115 [INPUT_BUTTON_WHEEL_DOWN] = 0x20, 116 }; 117 118 if (wheel < 0) { --- 131 unchanged lines hidden --- | 111 [INPUT_BUTTON_LEFT] = 0x01, 112 [INPUT_BUTTON_MIDDLE] = 0x04, 113 [INPUT_BUTTON_RIGHT] = 0x02, 114 [INPUT_BUTTON_WHEEL_UP] = 0x10, 115 [INPUT_BUTTON_WHEEL_DOWN] = 0x20, 116 }; 117 118 if (wheel < 0) { --- 131 unchanged lines hidden --- |