USBDevice for STM support

Dependents:   Nucleo_Usb_JoyMouse Nucleo_usbmouse ELEC350_1-referral-2018-usb-hid USBJoystick_HelloWorld2_wip ... more

This library contains all mbed usb device library (mbed-os\features\unsupported\USBDevice).

Committer:
frq08711@LMECWL0871.LME.ST.COM
Date:
Tue Mar 28 11:00:57 2017 +0200
Branch:
master
Revision:
4:50ec00aa4515
Parent:
1:2a3ae13b45ef
update for 5.4.2

Who changed what in which revision?

UserRevisionLine numberNew contents of line
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 1 /* Copyright (c) 2010-2011 mbed.org, MIT License
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 2 *
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 3 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 4 * and associated documentation files (the "Software"), to deal in the Software without
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 5 * restriction, including without limitation the rights to use, copy, modify, merge, publish,
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 6 * distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 7 * Software is furnished to do so, subject to the following conditions:
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 8 *
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 9 * The above copyright notice and this permission notice shall be included in all copies or
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 10 * substantial portions of the Software.
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 11 *
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 13 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 14 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 15 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 16 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 17 */
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 18
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 19 #ifndef USBMOUSE_H
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 20 #define USBMOUSE_H
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 21
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 22 #include "USBHID.h"
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 23
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 24 #define REPORT_ID_MOUSE 2
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 25
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 26 /* Common usage */
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 27
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 28 enum MOUSE_BUTTON
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 29 {
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 30 MOUSE_LEFT = 1,
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 31 MOUSE_RIGHT = 2,
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 32 MOUSE_MIDDLE = 4,
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 33 };
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 34
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 35 /* X and Y limits */
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 36 /* These values do not directly map to screen pixels */
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 37 /* Zero may be interpreted as meaning 'no movement' */
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 38 #define X_MIN_ABS (1) /*!< Minimum value on x-axis */
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 39 #define Y_MIN_ABS (1) /*!< Minimum value on y-axis */
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 40 #define X_MAX_ABS (0x7fff) /*!< Maximum value on x-axis */
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 41 #define Y_MAX_ABS (0x7fff) /*!< Maximum value on y-axis */
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 42
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 43 #define X_MIN_REL (-127) /*!< The maximum value that we can move to the left on the x-axis */
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 44 #define Y_MIN_REL (-127) /*!< The maximum value that we can move up on the y-axis */
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 45 #define X_MAX_REL (127) /*!< The maximum value that we can move to the right on the x-axis */
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 46 #define Y_MAX_REL (127) /*!< The maximum value that we can move down on the y-axis */
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 47
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 48 enum MOUSE_TYPE
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 49 {
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 50 ABS_MOUSE,
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 51 REL_MOUSE,
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 52 };
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 53
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 54 /**
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 55 *
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 56 * USBMouse example
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 57 * @code
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 58 * #include "mbed.h"
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 59 * #include "USBMouse.h"
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 60 *
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 61 * USBMouse mouse;
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 62 *
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 63 * int main(void)
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 64 * {
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 65 * while (1)
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 66 * {
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 67 * mouse.move(20, 0);
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 68 * wait(0.5);
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 69 * }
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 70 * }
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 71 *
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 72 * @endcode
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 73 *
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 74 *
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 75 * @code
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 76 * #include "mbed.h"
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 77 * #include "USBMouse.h"
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 78 * #include <math.h>
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 79 *
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 80 * USBMouse mouse(ABS_MOUSE);
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 81 *
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 82 * int main(void)
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 83 * {
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 84 * uint16_t x_center = (X_MAX_ABS - X_MIN_ABS)/2;
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 85 * uint16_t y_center = (Y_MAX_ABS - Y_MIN_ABS)/2;
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 86 * uint16_t x_screen = 0;
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 87 * uint16_t y_screen = 0;
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 88 *
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 89 * uint32_t x_origin = x_center;
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 90 * uint32_t y_origin = y_center;
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 91 * uint32_t radius = 5000;
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 92 * uint32_t angle = 0;
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 93 *
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 94 * while (1)
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 95 * {
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 96 * x_screen = x_origin + cos((double)angle*3.14/180.0)*radius;
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 97 * y_screen = y_origin + sin((double)angle*3.14/180.0)*radius;
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 98 *
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 99 * mouse.move(x_screen, y_screen);
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 100 * angle += 3;
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 101 * wait(0.01);
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 102 * }
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 103 * }
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 104 *
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 105 * @endcode
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 106 */
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 107 class USBMouse: public USBHID
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 108 {
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 109 public:
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 110
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 111 /**
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 112 * Constructor
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 113 *
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 114 * @param mouse_type Mouse type: ABS_MOUSE (absolute mouse) or REL_MOUSE (relative mouse) (default: REL_MOUSE)
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 115 * @param vendor_id Your vendor_id (default: 0x1234)
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 116 * @param product_id Your product_id (default: 0x0001)
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 117 * @param product_release Your preoduct_release (default: 0x0001)
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 118 *
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 119 */
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 120 USBMouse(MOUSE_TYPE mouse_type = REL_MOUSE, uint16_t vendor_id = 0x1234, uint16_t product_id = 0x0001, uint16_t product_release = 0x0001):
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 121 USBHID(0, 0, vendor_id, product_id, product_release, false)
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 122 {
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 123 button = 0;
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 124 this->mouse_type = mouse_type;
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 125 connect();
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 126 };
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 127
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 128 /**
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 129 * Write a state of the mouse
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 130 *
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 131 * @param x x-axis position
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 132 * @param y y-axis position
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 133 * @param buttons buttons state (first bit represents MOUSE_LEFT, second bit MOUSE_RIGHT and third bit MOUSE_MIDDLE)
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 134 * @param z wheel state (>0 to scroll down, <0 to scroll up)
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 135 * @returns true if there is no error, false otherwise
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 136 */
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 137 bool update(int16_t x, int16_t y, uint8_t buttons, int8_t z);
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 138
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 139
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 140 /**
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 141 * Move the cursor to (x, y)
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 142 *
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 143 * @param x-axis position
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 144 * @param y-axis position
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 145 * @returns true if there is no error, false otherwise
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 146 */
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 147 bool move(int16_t x, int16_t y);
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 148
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 149 /**
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 150 * Press one or several buttons
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 151 *
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 152 * @param button button state (ex: press(MOUSE_LEFT))
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 153 * @returns true if there is no error, false otherwise
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 154 */
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 155 bool press(uint8_t button);
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 156
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 157 /**
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 158 * Release one or several buttons
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 159 *
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 160 * @param button button state (ex: release(MOUSE_LEFT))
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 161 * @returns true if there is no error, false otherwise
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 162 */
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 163 bool release(uint8_t button);
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 164
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 165 /**
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 166 * Double click (MOUSE_LEFT)
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 167 *
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 168 * @returns true if there is no error, false otherwise
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 169 */
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 170 bool doubleClick();
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 171
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 172 /**
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 173 * Click
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 174 *
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 175 * @param button state of the buttons ( ex: clic(MOUSE_LEFT))
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 176 * @returns true if there is no error, false otherwise
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 177 */
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 178 bool click(uint8_t button);
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 179
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 180 /**
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 181 * Scrolling
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 182 *
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 183 * @param z value of the wheel (>0 to go down, <0 to go up)
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 184 * @returns true if there is no error, false otherwise
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 185 */
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 186 bool scroll(int8_t z);
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 187
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 188 /*
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 189 * To define the report descriptor. Warning: this method has to store the length of the report descriptor in reportLength.
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 190 *
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 191 * @returns pointer to the report descriptor
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 192 */
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 193 virtual uint8_t * reportDesc();
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 194
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 195 protected:
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 196 /*
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 197 * Get configuration descriptor
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 198 *
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 199 * @returns pointer to the configuration descriptor
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 200 */
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 201 virtual uint8_t * configurationDesc();
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 202
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 203 private:
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 204 MOUSE_TYPE mouse_type;
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 205 uint8_t button;
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 206 bool mouseSend(int8_t x, int8_t y, uint8_t buttons, int8_t z);
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 207 };
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 208
frq08711@LMECWL0871.LME.ST.COM 1:2a3ae13b45ef 209 #endif