Change joystick layout to Logitech Dual Action (PS3)

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Re: PB 5.20 - Joystick 2. Stick (No. 1 for PB) has wrong axi

Post by heartbone »

I suppose that I'll have to repeat all of this in the wishlist section? 8)
Keep it BASIC.
User avatar
Bananenfreak
Enthusiast
Enthusiast
Posts: 519
Joined: Mon Apr 15, 2013 12:22 pm

Re: PB 5.20 - Joystick 2. Stick (No. 1 for PB) has wrong axi

Post by Bananenfreak »

Or a friendly moderator moves this thread to our wishlist-section...

And here´s all in one:
We want Sony-Controller as standart Controller type :)
Image
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Change Joystick button and axis mapping to Logitech Dual Act

Post by heartbone »

Thank you very much friendly moderator. :wink:

Now all the OP has to do is change the thread's title to something a bit more appropriate.
It should express the idea of changing the PureBasic button and axis mapping to Logitech Dual Action compatible PC gamepads.

Any of the devices in the foillowing list are functionally identical as it pertains to the physical configuration of button & axis mappings,
and all will produce consistent results if the Joystick mapping defaults are set for the Logitech Dual Action.

Logitech Dual Action compatible

Logitech Rumble Pad 2
Logitech F310. F610, & F710
Gigaware USB Wired Controller for PC
Afterglow Controller for PS3
TTX Tech PC Controller Wired

In addition to the above, the complete compatible list contains any controller
marketed as a PC controller AND has the buttons labeled 1234 @ WSEN,
Image
or marketed as a PS3 (PlayStation 3) compatible controller WITHOUT the dual shock feature.

Any other gamepad such as a generic PC controller with the 1234 buttons @ NESW,
any controller in the XBOX series, or any PS3 controller with rumble,
would need the buttons and/or an axis or two remapped when used with the Joystick commands.

The buttons on this unit sums it up best for me.
Image
Thrustmaster always was one of the better manufacturers. :wink:
Keep it BASIC.
User avatar
Bananenfreak
Enthusiast
Enthusiast
Posts: 519
Joined: Mon Apr 15, 2013 12:22 pm

Re: Change joystick layout to Logitech Dual Action (PS3)

Post by Bananenfreak »

Are you happy with the new title? ^^
Image
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Re: Change joystick layout to Logitech Dual Action (PS3)

Post by heartbone »

Yes sir and thanks.

To be perfectly clear about the controllers on my list all being the same configuration as a Logitech Dual Action...

These are all electrically the same device as far as the button signal positions and axis mappings.
In Linux you can see that they all act in a consistent manner.

However within Windows for some unknown reason it seems that Microsoft alters the axis and buttons in the configurations based on the device's name.
If within the Windows registry one changes the name of the generic PS3 controller to "Logitech Dual Action USB",
then the generic PS3 controller becomes a Logitech Dual Action as far as Windows goes.

I'll guess that level of device behavior confusion was added by Microsoft for the same reason that they adopted the GameCube controller form factor over the normal PC controller form factor for their XBOX controllers, probably to make the most money.

If one does not employ the Windows registry name hack
when using one of these not named Logitech Dual Action yet functionally Logitech Dual Action controllers in Windows,
(all the buttons and left analog stick are fine) the rightmost analog is twisted 90 degrees counterclockwise, i.e., a user up push sends out a pushed right signal.

None of this is a problem in Linux, because all the electrically compatible sticks perform the same no matter what their name, because it's the electronics that are being read, not some registry remappings.

Here is all a Windows user would need to do in Windows to make a compatible stick's right analog behave properly.
* WINDOWS REGISTRY NAME HACK to "fix" twisted right analog *

Code: Select all

1) Find the system name for your controller from the Control Panel/Game Controllers app. That is also the OEMName shown in the registry keys.

2) Using regedit, find the specific sub key in HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\MediaProperties\PrivateProperties\Joystick\OEM
which contains the matching OEMName, and change the OEMName value to "Logitech Dual Action USB" (no quotes) 
Windows XP users exit regedit, the hack is complete.

Step 3 is needed for Vista

3) find the subkey HKEY_CURRENT_USER\System\CurrentControlSet\Control\MediaProperties\PrivateProperties\Joystick\OEM\VID_****&PID_****
which contains the matching OEMName, and change that OEMName value to "Logitech Dual Action USB".  Vista users exit regedit, the hack is complete.

Changing the name to "Logitech Rumblepad 2 USB" also works.
[/size]

Windows 7 users may need to do a global OEMName change to the registry, I'm not sure as I don't have Windows 7, but I do know from other users that if one changes all the instances of the OEMName to Logitech Dual Action USB, it works.

Apparently whether one needs to do this hack or not, is up to Microsoft.
Money talks, and I'm guessing that owners of products from big players like Thrustmaster won't need the hack.

Image
Thrustmaster T-Wireless 3 in 1 Rumble Force


Notice the button number font that pays homage to the Logitech Dual Action?

Click the link below for a picture of the 2 in 1, PS2 & PC compatible gamepad,
http://apacelli.com/photo/thrustmaster/ ... orce-1.jpg
and note the button difference when the PS3 is not in the mix.
Thrustmaster T-Mini 2 in 1 Wireless Rumble Force
That's the PS2 button layout.

Everything that I've posted in this thread, may or may not be accurate.
My conjectures are presented as conclusions, but in fact they are for the most part conjecture.
There is no gamepad controller authority.
Most of the available experts would be working for a company in the business and should have a bias.
Keep it BASIC.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: Change joystick layout to Logitech Dual Action (PS3)

Post by blueznl »

Are the 'dual action gamepad' and the 'rumblepad 2' the same thing?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Re: Change joystick layout to Logitech Dual Action (PS3)

Post by heartbone »

The Logitech Dual Action is their original dual analog gamepad model (replaced with the F310).
The Logitech Rumblepad 2 is the LDA with rumble added (replaced with the F510).

If the compiler development team decides to add the rumble commands, it will be interesting to see their decision about which commands to support. All that I think that I know is that a few PC BASIC compilers, all XBOX controllers, certain PlayStation3 controllers, certain Logitech controllers, and a whole lot of Pacific rim manufactured generic controllers support controller rumble. As far as how compatible the different rumble command sets are????
In the future, perhaps there will be PureBasic support for them all.

I do own a Logitech Precision gamepad
Image

which has the same button configuration as the LDA,
even though it looks like a controller for the original PlayStation
which likely had a different button configuration.

I'll make the wild guess that the PS2 inherited the original PS button configuration,
and then SONY decided to help out gamers and changed the PS3 buttons to match the PC world.
If my speculation is true, then I'd love to see the PureBasic compiler support SONY's decision
(as well as the old school PC gaming community) in return.

That Thrustmaster model shown in my post above is a real beauty.
One can reprogram the buttons and axes on the fly.
Check out the user comments on Amazon.
And I saw it as low as $15?!! Too bad I don't do wireless.

I thought it would emulate a PlayStation3 clone controller since the rumble circuitry is present.
But based on the user comments at Amazon, apparently the rumble feature is only enabled in PC mode.
So I'd guess that it probably emulates a Logitech Rumble Pad 2 or PlayStation 2 or a PlayStation 3 (generic/LDA).
Keep it BASIC.
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Re: Change joystick layout to Logitech Dual Action (PS3)

Post by heartbone »

Sony Considered The Xbox Layout And A Touch Screen For The PS4's DualShock 4

Sony tested quite a few designs for the PS4 controller, including one which resembled the Xbox stick layout, with one stick in place of the digital pad. Naturally, it was familiarity that won over – two sticks and face buttons are a DualShock staple, but there were many “out there” ideas as they brainstormed.


more at the link

From reading that article, it seems that the XBOX form factor is preferred by those who develop the murder simulators.
IMO another good reason for the compiler not to natively support that class of gamepads.
Keep it BASIC.
Post Reply