LinHES Forums
http://forum.linhes.org/

Joystick Frontend Control
http://forum.linhes.org/viewtopic.php?f=11&t=9282
Page 1 of 1

Author:  digipsythe [ Sun Mar 26, 2006 1:33 pm ]
Post subject:  Joystick Frontend Control

Hi all,
On my old fedora/myth box I had it set up so that I could control the frontend with my p3000 saitek joystick. Is that feature still avaliable with knoppmyth and could anyone give me a quick explination on how to set it up?

Thanks for your paitence with me,
C

Author:  cesman [ Sun Mar 26, 2006 3:39 pm ]
Post subject: 

How did you set it up with Fedora?

Author:  digipsythe [ Thu Mar 30, 2006 8:42 pm ]
Post subject: 

I just put a joystickmenurc file in my .myth/. folder and it worked with all of the frontend. It was really sweet actually.

If its the same on knoppmyth I couldn't find the .myth/. folder in any of the online directory trees. Could someone help a newb out?

Author:  cameraready [ Sun Apr 23, 2006 6:45 pm ]
Post subject: 

Since I don't have a remote for my frontend yet, I decided to get my joystick to work for menu navigation. I couldn't find a copy of the joystickmenurc.example file, so I created it based on the reference in the Gentoo-Wiki. http://gentoo-wiki.com/HOWTO_Setup_MythTV

As Root:
Code:
vi /home/mythtv/.mythtv/joystickmenurc

Code:
#
# Joystick menu config file
#  Place in ~/.mythtv/
#
#   Format:
#       devicename <devname>        Specify name of joystick device to use
#                                   (e.g. /dev/js0)
#       button num keystring        Send 'keystring' when button 'num' is released
#       chord cnum bnum keystring   If button cnum is down, and button 'bnum'
#                                   is released, send keystring
#       axis num from to keystring  If axis num goes into the range of from-to
#                                   send keystring

devicename /dev/input/js0

button 0                    Escape
button 1                    I
button 2                    P
button 3                    Enter

axis   0    -32767  -15000  Left
axis   0     15000   32767  Right
axis   1    -32767  -15000  Up
axis   1     15000   32767  Down

After I created the joystickmenurc file, I had to change the permissions for the joystick.
Code:
chmod 777 /dev/input/js0

A quit restart and I now have basic navigation using my joystick.:D

FYI, I'm using a Retrozone USB joystick adapter for my old Vectrex joystick. http://www.retrousb.com/ They sell USB adapters for all the old console joysticks. It worked without any configuration and shows up as:
Code:
"input: USB HID v1.00 Gamepad [SealieComputing RetroBoxVectrex] on usb-0000:00:10.0-1
agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0."


Update: Added HowTo article to Wiki. It might need some additional input for other types of joysticks.
http://knoppmythwiki.org/index.php?page=JoystickMenuNavigationHowTo

Author:  lovek [ Sat Nov 04, 2006 5:46 am ]
Post subject: 

run jstest --mode device. to find which port the device is located, press the buttons on the gamepad after running the command, if you have the right port you will see each buttom press on the screen.
try js0 - js3

jstest --normal /dev/js0

jstest --normal /dev/js1

and so on

change /home/mythtv/.mythtv/joystickmenurc
to match the device

devicename /dev/js0
button 2 Escape
button 0 I
button 3 P
button 1 Enter
axis 0 -32767 -15000 Left
axis 0 15000 32767 Right
axis 1 -32767 -15000 Up
axis 1 15000 32767 Down

good luck to all great mod thanks.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/