Move the Joystick, Keyboard, and Mouse into a base class which handles the operation/input, and a subclass which will implement the reporting as a HID device via USB, Bluetooth Classic, or Bluetooth Low Energy (BLE). Reduce copies of library code and makes maintainability much better.
32 lines
1.4 KiB
Text
32 lines
1.4 KiB
Text
:repository-owner: arduino-libraries
|
|
:repository-name: Joystick
|
|
|
|
= {repository-name} Library for Arduino (RP2040 based boards) =
|
|
|
|
This library allows an RaspberryPi RP2040 board to act as a Joystick when
|
|
Earle F. Philhower`s [arduino-pico](https://github.com/earlephilhower/arduino-pico)
|
|
Core is used.
|
|
|
|
== Acknowledgements / Credits ==
|
|
|
|
* [arduino-pico](https://github.com/earlephilhower/arduino-pico) Earle F. Philhower providing the Arduino Core, on which this library is based on, available under LGPL.
|
|
* [tinyUSB] (https://github.com/hathach/tinyusb) Ha Thach for providing tinyUSB under MIT license, which covers most of the USB functionality.
|
|
|
|
|
|
== License ==
|
|
|
|
Copyright (c) Benjamin Aigner <beni@asterics-foundation.org> All right reserved.
|
|
|
|
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
|