Download libraries/Mouse/src/Mouse.h from Beifengdo/Arduino-Development: direct link, hf CLI and curl.
- Browser
- Download file 1.75 kB
-
https://huggingface.co/datasets/Beifengdo/Arduino-Development/resolve/main/libraries/Mouse/src/Mouse.h
- Command line
-
hf download hf://datasets/Beifengdo/Arduino-Development/libraries/Mouse/src/Mouse.h
-
curl -L -o Mouse.h https://huggingface.co/datasets/Beifengdo/Arduino-Development/resolve/main/libraries/Mouse/src/Mouse.h
1.75 kB
| /* | |
| Mouse.h | |
| Copyright (c) 2015, Arduino LLC | |
| Original code (pre-library): Copyright (c) 2011, Peter Barrett | |
| This library is free software; you can redistribute it and/or | |
| modify it under the terms of the GNU Lesser General Public | |
| License as published by the Free Software Foundation; either | |
| version 2.1 of the License, or (at your option) any later version. | |
| This library is distributed in the hope that it will be useful, | |
| but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| Lesser General Public License for more details. | |
| You should have received a copy of the GNU Lesser General Public | |
| License along with this library; if not, write to the Free Software | |
| Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
| */ | |
| //================================================================================ | |
| //================================================================================ | |
| // Mouse | |
| class Mouse_ | |
| { | |
| private: | |
| uint8_t _buttons; | |
| void buttons(uint8_t b); | |
| public: | |
| Mouse_(void); | |
| void begin(void); | |
| void end(void); | |
| void click(uint8_t b = MOUSE_LEFT); | |
| void move(signed char x, signed char y, signed char wheel = 0); | |
| void press(uint8_t b = MOUSE_LEFT); // press LEFT by default | |
| void release(uint8_t b = MOUSE_LEFT); // release LEFT by default | |
| bool isPressed(uint8_t b = MOUSE_LEFT); // check LEFT by default | |
| }; | |
| extern Mouse_ Mouse; | |