summaryrefslogtreecommitdiff
path: root/README.txt
blob: 951a49c91d75d7ec02bbdc9e56c456bbffe96f70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
= some games for palladiumpi with gamepad input =

pong and tetris from pygames and https://www.101computing.net/pong-tutorial-using-pygame-getting-started/ adapted
to a palladium-pi game device (Palladium TV 500 with black and white screen and Raspbian Raspbery Pi 1 with composite output)

joystick-input.py used for starting games from the menu and in-game controller
only the first gamepad is used by python inputs library (https://inputs.readthedocs.io/en/latest/user/intro.html)

select	-> ALT+F4
start	-> WIN key
A 	-> Return
B 	-> Escape
A+B	-> toggle gamepad as OS input (for using the gamepad inside games or toggling the lxdmenu)

the script is started using this joystick-input.desktop file in /etc/xdg/autostart
the Path variable is important for python scripts

"""
[Desktop Entry]
Type=Application
Name=joystick-input
Comment=Joystick input
NoDisplay=true
Exec=/home/pi/src/joystick/joystick-input.py
Path=/home/pi/src/joystick
Terminal=false
Categories=Application;
"""