https://github.com/ossystems/uinput-event-api
https://github.com/ossystems/uinput-event-api
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ossystems/uinput-event-api
- Owner: OSSystems
- Created: 2019-10-16T18:29:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-18T17:45:01.000Z (over 6 years ago)
- Last Synced: 2024-04-15T03:06:25.453Z (almost 2 years ago)
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# uinput-event-api
Send input events
## Endpoints
### `POST /keypress`
Send keypress event
#### Request body:
```json
{ "key": "UP" }
```
#### Example with curl
`curl -X POST -H "Content-Type: application/json" -d '{"key":"UP"}' http://localhost:8085/keypress`
## Available keys
* `ESC`
* `A`
* `Z`
* `HOME`
* `UP`
* `LEFT`
* `RIGHT`
* `DOWN`
## License
Licensed under MIT ([LICENSE](LICENSE) or https://opensource.org/licenses/MIT).
## Contribution
Unless you explicitly state otherwise, any contribution intentionally
submitted for inclusion in the work by you, as defined in the MIT
license, shall be licensed as above, without any additional terms or
conditions.