Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: XDelusion on June 29, 2010, 04:16:38 AM

Title: Poseidon - Making sense of the Joy to Mouse/Key Assigns...
Post by: XDelusion on June 29, 2010, 04:16:38 AM
I have been told that one can configure their USB Joystick to emulate Keystrokes and Mouse movements, not unlike JoytoKey for Windows:

http://www.electracode.com/4/joy2key/JoyToKey%20English%20Version.htm

The problem is that the interface does not appear to be user friendly like the many Windows applications I have used for this purpose.

I'd really like to enjoy many of the games I have installed, but have been able to thus far, for which reason I must call upon one of you who has more knowledge to come and please walk  my by the hand through this seemingly daunting task.

Thank you.
Title: Re: Poseidon - Making sense of the Joy to Mouse/Key Assigns...
Post by: XDelusion on July 01, 2010, 07:01:33 AM
The "Sucks!" thread has more posts than this. Really, is this a piece of software that nearly everyone is running, but no one knows how to use?
Title: Re: Poseidon - Making sense of the Joy to Mouse/Key Assigns...
Post by: pVC on July 01, 2010, 08:42:35 AM
Well... I have never configured joystick movements to key presses. Usually games just work without a need to touch Poseidon configuration. Just assign controllers in the game or e-uae etc itself. Only thing to check in Poseidon is that how Lowlevel library emulation is set. USB joystick has to be mapped to one emulated port to be working on amiga games etc.

With analogue controllers (like racing wheel), you may have to configure correct ranges etc in the action tab on the Poseidon settings...
Title: Re: Poseidon - Making sense of the Joy to Mouse/Key Assigns...
Post by: XDelusion on July 01, 2010, 09:27:15 AM
PvC, aren't you the guy who they say works magick with the soldering iron?

Anyhow, my Joystick does work native with some of the games or emulators I run, such as eUAE (thank God), but there are still others that do not work and do not feature the option. Aside of the need, it would be a nifty feature to know my way around and have documented.

EDIT:

I relocated the ACTION TAB, not sure where to check if the low level lib is set, but I have found ACTION, and this is where I thought I was supposed to be, but could not make heads or tales of. I'm not exactly sure what I'm looking at. I see Y, X, Button 1, 2, 3, etc., but I don't understand what the stuff on the right represents. Generally with a Windows app of this nature, you have the letter of the Keyboard stroke you want to the right of the Button number. I.E.

Button1 = A
Button2 = B
Button3 = C
X = Mouse blah blah blah

etc.

I'm not seeing this here, there are a ton of options, where to begin?
Title: Re: Poseidon - Making sense of the Joy to Mouse/Key Assigns...
Post by: jacadcaps on July 01, 2010, 09:46:32 AM
Configuring joypads to send keyboard events isn't that hard - just run System Preferences, select USB, find the joypad among the available devices (it has to be connected obviously ;) and hit the Settings (or so, I don't have a MorphOS machine with me atm). Afair the available buttons are in the last tab. There you can select a certain joypad button and assign actions to it. For keyboard hits you should assign both key down and key up events afair.
Title: Re: Poseidon - Making sense of the Joy to Mouse/Key Assigns...
Post by: XDelusion on July 01, 2010, 12:01:46 PM
I finally figured it out. All those options make it overwhelming. Especially with no docs.

The only part I'm confused about is the Directional pad settings as they have more than one listing in the box in the lower left hand corner.
Title: Re: Poseidon - Making sense of the Joy to Mouse/Key Assigns...
Post by: platon42 on July 01, 2010, 10:46:48 PM
Quote from: XDelusion;568375
I finally figured it out. All those options make it overwhelming. Especially with no docs.

The only part I'm confused about is the Directional pad settings as they have more than one listing in the box in the lower left hand corner.


It's not my deal that the MorphOS Team is not providing the docs. There is a 165 KB manual, explaining the hid.class in detail. Actually, if the manual would have been installed at the right place (as it is being done on the Classic Amiga), the context sensitive page would come up right on pressing the help key (F12/Menu?) inside the relevant window.

The manual is in this archive, just in case it isn't in MOSSYS:Locale/Help

http://www.platon42.de/files/usb/PoseidonV4.lha

Also, the fabulous Total Amiga magazine included a brief HID Tutorial in 2003, which can be downloaded and read here:

http://www.totalamiga.org/pdf/totalamiga_17.pdf
Title: Re: Poseidon - Making sense of the Joy to Mouse/Key Assigns...
Post by: Piru on July 01, 2010, 11:16:03 PM
Quote from: platon42;568501
It's not my deal that the MorphOS Team is not providing the docs. There is a 165 KB manual, explaining the hid.class in detail. Actually, if the manual would have been installed at the right place (as it is being done on the Classic Amiga), the context sensitive page would come up right on pressing the help key (F12/Menu?) inside the relevant window.

The manual is in this archive, just in case it isn't in MOSSYS:Locale/Help
Code: [Select]
Directory listing of /MorphOS/Locale/Help/deutsch/
----------   0    0    0          178420 Jun  2 2010 [  24172 00]  Poseidon.guide
Directory listing of /MorphOS/Locale/Help/english/
----------   0    0    0          167968 Jun  2 2010 [  24294 00]  Poseidon.guide

I think the MorphOS multiview/amigaguide.library implementation doesn't properly implement opening the correct context sensitive guide node however (it currently opens the document root). Itix?
Title: Re: Poseidon - Making sense of the Joy to Mouse/Key Assigns...
Post by: XDelusion on July 02, 2010, 02:39:58 AM
I'll have a look.

Now I'm at the point where I can assign what ever my heart desires (more or less), but once I've used a button, it locks. I.E. if A = SPACE, then SPACE is CONSTANTLY being held down and does not just turn off like it is supposed to, which presents a problem when I'm trying to navigate to a game folder, and the system thinks I'm constantly pressing buttons on the keyboard.

Hopefully these docs will shed light.

Thankx again.
Title: Re: Poseidon - Making sense of the Joy to Mouse/Key Assigns...
Post by: rzookol on July 02, 2010, 07:37:03 AM
@Piru

afaik, itix hasn't implemented it yet
Title: Re: Poseidon - Making sense of the Joy to Mouse/Key Assigns...
Post by: XDelusion on July 03, 2010, 06:52:46 PM
Alright, hitting F12 and or HELP is certainly broken. That should be resolved if possible.

As for the tutorial in the magazine, I saw the part where they were talking about Poseidon, but did not see the HID tutorial.

I did find the bit in the docs that discusses this, but did did not go into enough detail for me.

It says I need to make sure to add a key release state, but I've no idea how to do this as the docs "seem" to skip over that very fine detail.

There was a bit about setting things on the right from ANY to UP or DOWN, but I think that just means the trigger is active when the button is pressed or released.

No matter what, what ever buttons I assign to my controller, it sticks, as if in rapid fire, and it will only make use of the last key I assigned, or rather that is the dominating one. So if I configure left, then it always goes left, but when I configure right it always goes right and if I press left it will go left for one notch, but then it wants to force itself right again.

I'm confused, please help with Pics if possible.

One thing I did notice is that when you change the settings to RAW so you can assign keyboard strokes. it will always say, KEYDOWN or what ever on the left, it never provides and option for key release.
Title: Re: Poseidon - Making sense of the Joy to Mouse/Key Assigns...
Post by: Golem!dk on July 03, 2010, 07:20:45 PM
platon42 linked to the wrong issue, the hid tutorial is in issue 14 (http://www.totalamiga.org/pdf/totalamiga_14.pdf), this is of course also mentioned in the hid section of the poseidon guide.
Title: Re: Poseidon - Making sense of the Joy to Mouse/Key Assigns...
Post by: XDelusion on July 03, 2010, 07:24:21 PM
I saw the link in the docs, but didn't stop to see if he had sent me a wrong link...

Thank you!
Title: Re: Poseidon - Making sense of the Joy to Mouse/Key Assigns...
Post by: XDelusion on July 04, 2010, 02:41:26 AM
According to these tutorials, I only needed to check the UP or Down box to the right so I could assign something like Directional Pad up, and Directional pad up release. Along with the Directional pad up (for release) I check marked "send keyup event instead of keydown".

According to the tutorial, I should have been ready to go, unless I'm over looking a small detail.

Either way, my same problems exist. The controller is stuck going right no matter if I press it or not.

I'd take a screen shot of my config, but I'm not home atm.
Title: Re: Poseidon - Making sense of the Joy to Mouse/Key Assigns...
Post by: XDelusion on July 04, 2010, 10:10:27 PM
O.K. Now things are all out of whack.

I returned the settings to their default, but now when I load up eUAE, I can use the directional pad fine, but if I hit the left analog, my character gets stuck moving right even though I removed all Joy to Keyboard assigns.

What gives?!?!

I wish this were easy to use and fool proof like the Windows apps of this nature, and I really hate to admit that Windows actually has the Amiga beat on something.

Anyhow, now I can't use my Joystick for ANYTHING. :/
Title: Re: Poseidon - Making sense of the Joy to Mouse/Key Assigns...
Post by: Fab on July 04, 2010, 10:14:02 PM
At worst, if you think you misconfigured too much stuff in the HID settings, you can always go in poseidon->config list entry and delete the config item related to your device (or the HID class setting itself), to start on a fresh basis.
Title: Re: Poseidon - Making sense of the Joy to Mouse/Key Assigns...
Post by: XDelusion on July 04, 2010, 10:16:21 PM
I was looking for that feature.

Anyhow, I'll try that when I get home...

...so strange though because I swear I didn't touch anything but what I needed to.
Title: Re: Poseidon - Making sense of the Joy to Mouse/Key Assigns...
Post by: XDelusion on July 17, 2010, 04:46:41 PM
Well, I can assign buttons just fine. I have discovered that much. All I have to do is set them to Raw, then assign an up and down button for each character, etc.

The problem still remains though that if I try to assign the Directional Pad (Hat) to Arrow Keys, that things will get screwed up and you either can not move with the directional PAD (HAT), or movements are assigned to the Left Analog, and do not work as they should, it's as if the right and down arrow keys are ALWAYS On, regardless of the fact that I did indeed assign a Key release command to each input.

Think I'm going to hit up the store and find an analog free controller to test next.
Title: Re: Poseidon - Making sense of the Joy to Mouse/Key Assigns...
Post by: Fab on July 17, 2010, 06:01:20 PM
Not exactly sure what you get. But if analog is badly configured by default, it might always signal a left value, for instance. You can easily check that by pressing analog directions and see the current values, and the thresholds configured in poseidon to bind them to left/right/up/down.
Title: Re: Poseidon - Making sense of the Joy to Mouse/Key Assigns...
Post by: XDelusion on July 18, 2010, 08:40:09 PM
It is fine by default, unlike the buttons, all is as it should be. It's just when I try to assign directions to keyboard buttons, that's when things act flaky.