First Download the Android SDK Commandline Tool only.
https://developer.android.com/studio/
Goto Download Options
Find Commandline tools only Section
| #include <linux/uinput.h> | |
| #include <linux/input.h> | |
| #include <errno.h> | |
| #include <fcntl.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <sys/ioctl.h> | |
| #include <unistd.h> |
| /* | |
| * Android (and Linux X11) can't handle absolute position HID events from mouse | |
| * https://www.codeproject.com/Articles/1001891/A-USB-HID-Keyboard-Mouse-Touchscreen-emulator-with | |
| * | |
| * This program read these ABS_X & ABS_Y events from /dev/input/eventX, and emulate a touchscreen/stylus via linux uinput, so an "absolute" mouse can work. | |
| * Example of "absolute" mouse: PiKVM, or some other mouse-emulating hardware (e.g. https://detail.tmall.com/item.htm?id=684263217981) | |
| */ | |
| #include <linux/uinput.h> | |
| #include <stdio.h> |
| #include "mpu6050.h" | |
| /* | |
| ******************************************************************************* | |
| * Global Variables * | |
| ******************************************************************************* | |
| */ |
| /* | |
| ******************************************************************************* | |
| * (C) Copyright 2020 Micrified * | |
| * Created: 27/02/2020 * | |
| * * | |
| * Programmer(s): * | |
| * - Charles Randolph * | |
| * * | |
| * Description: * | |
| * MPU-6050 interface for the ESP32 I2C driver * |
First Download the Android SDK Commandline Tool only.
https://developer.android.com/studio/
Goto Download Options
Find Commandline tools only Section