Author Topic: USB game controllers and mice  (Read 5993 times)

0 Members and 1 Guest are viewing this topic.

Offline HAL 6128

  • 464 Plus
  • *****
  • Posts: 485
  • Country: de
    • index.php?action=treasury
  • Liked: 238
  • Likes Given: 1165
Re: USB game controllers and mice
« Reply #25 on: 23:40, 10 February 19 »
Not sure myself. Just a quick thought about reading old hardware (like a ST Trackball plugged onto the joystick port). But that's totally different to your project.
...proudly supported Pentomino and NQ-Music-Disc with GFX

Offline GUNHED

  • 6128 Plus
  • ******
  • Posts: 1.253
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
  • Liked: 702
  • Likes Given: 1523
Re: USB game controllers and mice
« Reply #26 on: 21:00, 12 February 19 »
Still dreaming of ST-Mouse Adapter compatibility...  :-X :-X :-X :)
http://futureos.de --> Get the revolutionary FutureOS (Recent update: 2019.08.07)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2019.08.14)

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.093
  • Country: dk
    • spinpoint.org
  • Liked: 1173
  • Likes Given: 838
Re: USB game controllers and mice
« Reply #27 on: 14:17, 07 March 19 »

A little progress, now support for Dualshock 3 & 4 controllers.


https://youtu.be/KO3-AH6rpYk

(Nice game @PuzCPC)

Unfortunately I made another mistake or two on the revision 2 PCB, so I will have to order another batch before I can produce any.
Upgrading via USB stick is now also possible. Need to still add some stuff before I am happy with the code.

Online Maniac

  • CPC6128
  • ****
  • Posts: 178
  • Country: gb
  • Liked: 66
  • Likes Given: 30
Re: USB game controllers and mice
« Reply #28 on: 21:59, 07 March 19 »
Would love one of these please! Will it support both joystick ports on the Plus? If so would it be possible to use one in each port for 2 player games? If that’s the case I might want 2 please.

Offline Phantomz

  • 6128 Plus
  • ******
  • Posts: 1.139
  • Country: gb
  • Liked: 1657
  • Likes Given: 532
Re: USB game controllers and mice
« Reply #29 on: 22:35, 07 March 19 »

@Duke


How many fire buttons do these support, 2 or 3?

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.093
  • Country: dk
    • spinpoint.org
  • Liked: 1173
  • Likes Given: 838
Re: USB game controllers and mice
« Reply #30 on: 09:10, 08 March 19 »
Will it support both joystick ports on the Plus? If so would it be possible to use one in each port for 2 player games? If that’s the case I might want 2 please.
Yes it should be possible to use one in each of the CPC plus ports. Will test when I have two working modules :)

How many fire buttons do these support, 2 or 3?
3 for regular Amstrads
2 for Amstrad CPC plus

Offline Phantomz

  • 6128 Plus
  • ******
  • Posts: 1.139
  • Country: gb
  • Liked: 1657
  • Likes Given: 532
Re: USB game controllers and mice
« Reply #31 on: 16:32, 08 March 19 »
3 for regular Amstrads
2 for Amstrad CPC plus


Nice, it's a shame that the plus hardware doesn't support 3 buttons.  :doh:


At least the original CPC range support 3 buttons, I'll have to remap controls in Renegade & 1943.  ;D

Offline TotO

  • 6128 Plus
  • ******
  • Posts: 3.348
  • Country: fr
    • ?area=showdonations;u=4
  • Liked: 2557
  • Likes Given: 1501
Re: USB game controllers and mice
« Reply #32 on: 16:45, 08 March 19 »
Because pin5 is not Fire3 but spare on CPC. Not kept on PLUS, while mostly 1 button was used on computers controllers (2 are on the analog port too).
« Last Edit: 16:48, 08 March 19 by TotO »
"You make one mistake in your life and the internet will never let you live it down" (Keith Goodyer)

Offline PuzCPC

  • CPC464
  • **
  • Posts: 48
  • Country: si
  • Liked: 152
  • Likes Given: 61
Re: USB game controllers and mice
« Reply #33 on: 17:03, 08 March 19 »
A little progress, now support for Dualshock 3 & 4 controllers.


https://youtu.be/KO3-AH6rpYk

(Nice game @PuzCPC)

Unfortunately I made another mistake or two on the revision 2 PCB, so I will have to order another batch before I can produce any.
Upgrading via USB stick is now also possible. Need to still add some stuff before I am happy with the code.



Hi,
I see it for the first time on the real CPC. :D
What's really so smooth scrolling?  :o
PuzCPC

Offline Phantomz

  • 6128 Plus
  • ******
  • Posts: 1.139
  • Country: gb
  • Liked: 1657
  • Likes Given: 532
Re: USB game controllers and mice
« Reply #34 on: 18:36, 08 March 19 »
@Duke


I've remapped the controls in " Renegade ".


I've made it Joystick only, I've mapped the attacks to the 3 joystick buttons, I've made button 1 and 3 attack, with button 2 jump.


It's here if you want to give it a test.  ;D
« Last Edit: 18:46, 08 March 19 by Phantomz »

Offline Syncmaster319

  • CPC464
  • **
  • Posts: 13
  • Country: gb
  • Liked: 2
  • Likes Given: 0
Re: USB game controllers and mice
« Reply #35 on: 01:24, 09 March 19 »
Duke,

Great stuff as always.

The support for multiple fire buttons is a killer feature.  I love my monster joystick but its a shame to only have 1 fire button.

Will be an instant purchase from me.

Mark

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.093
  • Country: dk
    • spinpoint.org
  • Liked: 1173
  • Likes Given: 838
Re: USB game controllers and mice
« Reply #36 on: 09:27, 09 March 19 »
@Duke


I've remapped the controls in " Renegade ".


I've made it Joystick only, I've mapped the attacks to the 3 joystick buttons, I've made button 1 and 3 attack, with button 2 jump.


It's here if you want to give it a test.  ;D

The archieve is damaged, can you re-attach it? - It's nice to have a game with 3 buttons to test, thanks.

Offline Phantomz

  • 6128 Plus
  • ******
  • Posts: 1.139
  • Country: gb
  • Liked: 1657
  • Likes Given: 532
Re: USB game controllers and mice
« Reply #37 on: 19:47, 10 March 19 »
The archieve is damaged, can you re-attach it? - It's nice to have a game with 3 buttons to test, thanks.


Odd, it works for me, I used the latest version of winrar (trial version) as on a new laptop.


I'll have to look for another program to use to compress the disc.

Offline Audronic

  • 6128 Plus
  • ******
  • Posts: 1.228
  • Country: au
  • I know RST3 . I now know a little More.
  • Liked: 280
  • Likes Given: 615
Re: USB game controllers and mice
« Reply #38 on: 00:16, 11 March 19 »
The archieve is damaged, can you re-attach it? - It's nice to have a game with 3 buttons to test, thanks.


I was able to open the Renegade (3 Button Joy).rar file with  " iZip Unarchiver " On my MAC


Ray



Procrastinators Unite,
If it Ain't Broke PLEASE Don't Fix it.
I keep telling you I am Not Pedantic.
As I Live " Down Under " I Take my Gravity Tablets and Wear my Magnetic Boots to Keep me from Falling off.

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.093
  • Country: dk
    • spinpoint.org
  • Liked: 1173
  • Likes Given: 838
Re: USB game controllers and mice
« Reply #39 on: 08:27, 11 March 19 »
Yes, got it working using the latest winrar, thanks (Appearently something changed from the old one I was using).
I guess it's better to use .zip as that atleast is freely available.

Offline Phantomz

  • 6128 Plus
  • ******
  • Posts: 1.139
  • Country: gb
  • Liked: 1657
  • Likes Given: 532
Re: USB game controllers and mice
« Reply #40 on: 15:23, 11 March 19 »
Yes, got it working using the latest winrar, thanks (Appearently something changed from the old one I was using).
I guess it's better to use .zip as that atleast is freely available.

@Duke

I'm glad you managed to get it working, I'll download winzip later.

I've remapped the controls in " 1943 " to make it use 3 buttons by default for both players, you might like this also.  ;)

Button 1 = Fire, Button 2 = Rolling, Button 3 = Smart Bomb

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.093
  • Country: dk
    • spinpoint.org
  • Liked: 1173
  • Likes Given: 838
Re: USB game controllers and mice
« Reply #41 on: 15:43, 05 April 19 »
Final PCB arrived, tested and OK  8)

Hope to wrap up the bootloader and initial firmware over the weekend.
Still missing some female DC connectors before I can ship any.
« Last Edit: 15:45, 05 April 19 by Duke »

Offline GUNHED

  • 6128 Plus
  • ******
  • Posts: 1.253
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
  • Liked: 702
  • Likes Given: 1523
Re: USB game controllers and mice
« Reply #42 on: 15:51, 05 April 19 »
Like usually excellent and professional work!  :) :) :)
Since we discussed some idea, Duke, can can please in brief explain how they work?
Are they compatible to digital joysticks or can they provide proportional data?

They definitely win the price for the smallest adapter in CPC world ever.  :laugh:
« Last Edit: 16:22, 05 April 19 by GUNHED »
http://futureos.de --> Get the revolutionary FutureOS (Recent update: 2019.08.07)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2019.08.14)

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.093
  • Country: dk
    • spinpoint.org
  • Liked: 1173
  • Likes Given: 838
Re: USB game controllers and mice
« Reply #43 on: 16:05, 05 April 19 »
Like usually excellent and professional work!  :) :) :)
Since we discussed some idea, Duke, can can please in brief explain how they work?
Are they compatible to digital joysticks or can they provide proportional data?

Thanks.
As for initial firmware release I think I will just provide plain digital joystick conversion.
However I already have my custom 5 bit proportional data mode working fine for USB mouses, but of course no real use for special modes yet.
The beauty is that it can be easily upgraded, if one has a USB stick laying around (just plug it into the USB port of the adapter and powercycle it).
So I can implement whatever I want, if there is a demand for it.

With other firmwares I will try to support ZX, C64, Amiga and Atari ST too (although the last 3 require different "jumper" setting via smd resistors). As I am in lack of proper mouses for the 16 bits and joysticks for the others.

Quote
They definitely win the price for the smallest adapter in CPC world ever.  :laugh:
Thanks for noticing, I did my best to make it as small as possible, I could probably still squeeze another couple of mm off, maybe for another revision.
« Last Edit: 18:31, 05 April 19 by Duke »

Offline GUNHED

  • 6128 Plus
  • ******
  • Posts: 1.253
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
  • Liked: 702
  • Likes Given: 1523
Re: USB game controllers and mice
« Reply #44 on: 16:19, 05 April 19 »
No, no, please don't make it smaller. One just felt between two keys and disappeared.  :laugh:

Fun at side. I still do have the Atari ST mouse here, so if some day maybe the proportional firmware for the following adapter will be available, I volunteer for testing intensively. That's the one I mean:
http://www.cpcwiki.eu/index.php/Atari-ST_mouse_adapter

Do you already support three buttons? Like for the AMX mouse? If not, this could be a first firmware update.  :)

Cool project, please add me to the "I want to buy" list.  :)
http://futureos.de --> Get the revolutionary FutureOS (Recent update: 2019.08.07)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2019.08.14)

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.093
  • Country: dk
    • spinpoint.org
  • Liked: 1173
  • Likes Given: 838
Re: USB game controllers and mice
« Reply #45 on: 16:34, 05 April 19 »
@GUNHED
Thanks, will consider it all later. It much more fun to make features if they are not just for myself (I am quite simple!).


Forgot to include a picture of the transparent enclosure... yea, it's heatshrink tube, but it will protect well against accidental shorts. I will need to practice it a bit more.
Also not sure if it will accumulate too much heat, to be tested!

Pricing for the initial run is 14 euro + shipping (4 euro) and this time PLUS paypal cost (but I consider you my friends). It will include a Y splitter cable for routing the powersupply to the adapter.
Price may change later if more is built etc.

EDIT: Initial batch sold out. Price going forward is now 15 euro with Y splitter cable.
« Last Edit: 09:56, 10 April 19 by Duke »

Offline GUNHED

  • 6128 Plus
  • ******
  • Posts: 1.253
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
  • Liked: 702
  • Likes Given: 1523
Re: USB game controllers and mice
« Reply #46 on: 16:42, 05 April 19 »
This short cut protection is awesome, more often cables fall around a computer... oh well, we sometimes payed our price for this before. Shouldn't get hot IMHO.
http://futureos.de --> Get the revolutionary FutureOS (Recent update: 2019.08.07)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2019.08.14)

Offline XeNoMoRPH

  • 464 Plus
  • *****
  • Posts: 431
  • Country: es
  • " ... in space no one , can hear you scream ... "
  • Liked: 825
  • Likes Given: 745
Re: USB game controllers and mice
« Reply #47 on: 20:45, 05 April 19 »
Hi Duke !!!

Do you already accept orders from the usb adapter?  :o

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.093
  • Country: dk
    • spinpoint.org
  • Liked: 1173
  • Likes Given: 838
Re: USB game controllers and mice
« Reply #48 on: 21:09, 05 April 19 »
Do you already accept orders from the usb adapter?  :o

Yes, I take orders for the first batch. Which will be 10-15 pcs, and should be ship able within the next 1-3 weeks (todo finish bootloader and initial firmware over the weekend and await female DC sockets).


So in short if you want one, send me a PM. Currently I only have Y-split power cables suitable for regular CPC, so if you have a CPC plus, you will need some sort of DC plug adapter.
It's important for the CPC that the USB adapter is powered together with the CPC (sharing same ground, which is not available on the joystick port). For other computers (except ZX +2/+3) it can be port powered or powered by seperate psu.

Picture of Y split cable I currently have, they will fit regular CPC (5.5x2.1mm plugs)

Online Maniac

  • CPC6128
  • ****
  • Posts: 178
  • Country: gb
  • Liked: 66
  • Likes Given: 30
Re: USB game controllers and mice
« Reply #49 on: 00:54, 06 April 19 »
Yes, I take orders for the first batch. Which will be 10-15 pcs, and should be ship able within the next 1-3 weeks (todo finish bootloader and initial firmware over the weekend and await female DC sockets).


So in short if you want one, send me a PM. Currently I only have Y-split power cables suitable for regular CPC, so if you have a CPC plus, you will need some sort of DC plug adapter.
It's important for the CPC that the USB adapter is powered together with the CPC (sharing same ground, which is not available on the joystick port). For other computers (except ZX +2/+3) it can be port powered or powered by seperate psu.

Picture of Y split cable I currently have, they will fit regular CPC (5.5x2.1mm plugs)
Have PM’d you for one of the devices at the mo. A while ago I asked about a second device on the Plus given its 2 joystick ports but given the power requirements you mention in this post would this even be possible?