Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

This python application subscribes for gamepad events, and publishes a command corresponding to the received event to MQTT.

License

Notifications You must be signed in to change notification settings

RoboticBase/fiware-gamepad-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fiware-gamepad-controller

This python application subscribes for gamepad events, and publishes a command corresponding to the received event to MQTT.

TravisCI Status

Description

This python application works on Raspberry Pi 2 or higher.

This applicaton subscribes for gamepad events using pygame. When a gamepad event is received and a command is associated with the event, this application publishes the command to MQTT Broker.

Requirement

python 3.6 or higher

Install libraries

$ git clone https://github.com/RoboticBase/fiware-gamepad-controller.git
$ cd fiware-gamepad-controller
$ pip install -r requirements/common.txt

How to Run

$ python ./main.py [-h] [--describe] [--debug] [type]
option description
-h, --help show help message
--describe show the event of gamepad instead of publishing a command to MQTT
--debug show debug log
type give the configuration type

When abc is given as [type], conf/abc.yaml is loaded as the configuration of this application.

License

Apache License 2.0

Copyright

Copyright (c) 2018 TIS Inc.

About

This python application subscribes for gamepad events, and publishes a command corresponding to the received event to MQTT.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages