Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: How to use joy2key for SIXAXIS joypad (or any really!)

  1. #11
    Join Date
    Mar 2011
    Beans
    21

    Re: How to use joy2key for SIXAXIS joypad (or any really!)

    My second joystick must be mouse0, as plugging and unplugging the second mouse makes mouse0 appear and disappear in dev/input

    However when I try:

    joy2key -dev /dev/input/mouse0 -terminal

    I get:

    joy2key - reads joystick status and dispatches keyboard events
    By Peter Amstutz (tetron@interreality.org)
    This is free software under the GNU General Public License (GPL v2)
    (see COPYING in the joy2key archive)
    You are welcome to use/modify this code, and please e-mail me
    if anything cool comes of it!
    Version: 1.6.3 Binary built on Dec 22 2009 at 13:45:44

    Error opening /dev/input/mouse0!
    Are you sure you have joystick support in your kernel?
    ryan@ryan-CM5570:~$

    Any ideas on what to do here??

  2. #12
    Join Date
    Mar 2011
    Beans
    21

    Re: How to use joy2key for SIXAXIS joypad (or any really!)

    I got it all working, one of the emulators gave me the button layout.

  3. #13
    Join Date
    Sep 2006
    Beans
    Hidden!

    Re: How to use joy2key for SIXAXIS joypad (or any really!)

    Thanks for this. I got my generic acme gamepad working on lucid with wine. It shows up in lsusb as

    Code:
    Bus 005 Device 004: ID 0079:0011 DragonRise Inc.
    Here is my .joy2keyrc:
    Code:
    COMMON
    -X
    -dev /dev/input/js0
    -thresh 0 0 0 0 0 0 -16383 16383 -16383 16383 0 0
    
    START tomb
    -X
    -buttons Control_L q e space h v Shift_L g Escape Tab
    -axis 0 0 1 1 2 2 a d w s 5 5
    As you can see this device has 10 buttons and 6 axis (4 of which are rubbish?).
    Once wine is started you attach joy2key with
    Code:
    joy2key -config tomb "Tomb Raider: Underworld"
    The last one is the window name. For full-screen you may see it with alt+tab or something.

  4. #14
    Join Date
    Feb 2013
    Beans
    1

    Re: How to use joy2key for SIXAXIS joypad (or any really!)

    Hey everybody
    I have this all set up in ubuntu, I have two terminal windows open. One running mupen64plus and the other is running joy2key. the one running joy2key is telling me it's sending the correct keys.
    iscap is now 0 sendkey: button_upper: 0 keycode 0x000036 54 sendkey: keysym c
    state hex 10
    iscap is now 0 sendkey: button_upper: 0 keycode 0x000034 52 sendkey: keysym z
    state hex 10
    iscap is now 0 sendkey: button_upper: 0 keycode 0x000034 52 sendkey: keysym z
    state hex 10

    i wanted to push c and z on the keyboard, and it recognized that.
    The problem is that it won't communicate with mupen64plus.
    I used the same controller on project64 for windows for the same game. (zelda)
    I have tried clicking on the emulator window, the terminal window it's running from, and don't know what else I could try.
    Thanks for all the help!

    Also, I should point out that I can type on my computer with my controller now. I can type c,x,z, and move back and forth through text with the joystick. It is working, just won't send the info to mupen64plus.
    Last edited by chive; February 6th, 2013 at 02:33 AM.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •