ashurek
Posts: 3
Joined: Tue Nov 08, 2016 8:57 am

Execute script when gamepad button is pressed

Tue Nov 08, 2016 12:18 pm

I would like to know how to interact with the operating system after pressing a button on the gamepad.
The actions that interest me are to power off raspberry pi, turn up and down the volume.

Can you help me with this?

Thanks

User avatar
topguy
Posts: 6527
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Execute script when gamepad button is pressed

Tue Nov 08, 2016 12:28 pm

Most of the things I wanted to mention is already here:
http://unix.stackexchange.com/questions ... tick-input

Return to “Beginners”