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

0 Members and 1 Guest are viewing this topic.

Offline Maniac

  • CPC6128
  • ****
  • Posts: 178
  • Country: gb
  • Liked: 66
  • Likes Given: 32
Re: USB game controllers and mice
« Reply #75 on: 15:06, 18 April 19 »
Hi Duke,

Received my Imperium Solo this morning. Have to say I’m so impressed with this. Plugged it in to my Plus with a DualShock 3 and fired up Burnin Rubber using the triggers for accelerator and brake. Actually managed a lap and a half and felt so responsive.

Excellent stuff and highly recommended as always!

Also thank you so much for sourcing the y cable/adapter specifically for the Plus!

Kind regards
Maniac

Offline GUNHED

  • 6128 Plus
  • ******
  • Posts: 1.255
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
  • Liked: 703
  • Likes Given: 1527
Re: USB game controllers and mice
« Reply #76 on: 16:29, 18 April 19 »
WoW! This is retroactive! Means shipping goes backwards in time. Tomorrow I will order and it already arrived. The main thing is: It works really well! I just used an USB mouse for testing:



https://youtu.be/emGJvcisVsI

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 slugman

  • CPC464
  • **
  • Posts: 8
  • Country: fr
  • Liked: 7
  • Likes Given: 11
Re: USB game controllers and mice
« Reply #77 on: 02:06, 19 April 19 »
Received it also today  :D
Tested with a Xbox One controller, and that works great! using modern controller really improve the gameplay.  Also enjoyed playing Shufflepuck Café with a mouse  :) . Thanks Duke for this new great device!

Offline George Schizas

  • CPC464
  • **
  • Posts: 9
  • Liked: 6
  • Likes Given: 2
Re: USB game controllers and mice
« Reply #78 on: 14:16, 19 April 19 »
Damn it, I was so close to making something similar by using a Raspberry Pi (obviously when the adapter has more processing power than the computer, I was doing something wrong  :)  - but I intended to do this as a prototype)


I'll be PM'ing for the next batch.
« Last Edit: 14:29, 19 April 19 by George Schizas »

Offline Bruce101

  • CPC464
  • **
  • Posts: 9
  • Country: es
  • Liked: 3
  • Likes Given: 4
Re: USB game controllers and mice
« Reply #79 on: 14:56, 19 April 19 »
Hi Duke!
First of all congratulations for the good work!!!
Im a CPC enthusiats from 1986, with a CPC464 still working... I bought your WIFI / SD M4 board some time ago (maybe 2 or 3 years... I don´t remember) its a cool stuff!!!
Im interested on two usb adapters for regular CPC, is it still possible to buy them?
Thanks in advance!!!

Offline Maniac

  • CPC6128
  • ****
  • Posts: 178
  • Country: gb
  • Liked: 66
  • Likes Given: 32
Re: USB game controllers and mice
« Reply #80 on: 15:23, 19 April 19 »
Having stayed up late playing with this last night I’ve just had thought of an idea.

If at all possible it would be really cool if the planned button mapping feature could support button sequences. For example a jump, followed by a direction then maybe something else. Would be v useful in Navy Seals for example where some of the moves are tricky to do every time!

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.093
  • Country: dk
    • spinpoint.org
  • Liked: 1173
  • Likes Given: 838
Re: USB game controllers and mice
« Reply #81 on: 15:24, 19 April 19 »

Hi Duke!
First of all congratulations for the good work!!!
Im a CPC enthusiats from 1986, with a CPC464 still working... I bought your WIFI / SD M4 board some time ago (maybe 2 or 3 years... I don´t remember) its a cool stuff!!!
Im interested on two usb adapters for regular CPC, is it still possible to buy them?
Thanks in advance!!!

Thanks. Yes it's possible to buy them. Currently there is a lead time of some weeks.

Ordering procedure:
Send me a PM (with your email address) or an email and let me know what you need and for which computer, then I  will confirm and add you to my list.
And when it is ready, I will email you with Paypal details and ask for your shipping address.

Current pricing is:
Imperium Solo with DC Y splitter cable for regular CPC, 15 euro
Imperium Solo with DC Y splitter cable and adapter for CPC plus, 16 euro
Shipping worldwide (unregistered) up to 100 grams, 4 euro
+ Paypal fee which is 1 euro or pay as friend (but you loose the ability to make a claim to Paypal afaik. if you are not happy with the product etc, so up to you!)
« Last Edit: 15:27, 19 April 19 by Duke »

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.093
  • Country: dk
    • spinpoint.org
  • Liked: 1173
  • Likes Given: 838
Re: USB game controllers and mice
« Reply #82 on: 15:25, 19 April 19 »
Having stayed up late playing with this last night I’ve just had thought of an idea.

If at all possible it would be really cool if the planned button mapping feature could support button sequences. For example a jump, followed by a direction then maybe something else. Would be v useful in Navy Seals for example where some of the moves are tricky to do every time!
Not impossible...Record sequence, Playback.

Offline Bruce101

  • CPC464
  • **
  • Posts: 9
  • Country: es
  • Liked: 3
  • Likes Given: 4
Re: USB game controllers and mice
« Reply #83 on: 15:52, 19 April 19 »
Hi Duke!
You have an MP (and an email by mistake, are the same, sorry).

Offline zhulien

  • 464 Plus
  • *****
  • Posts: 416
  • Country: au
    • 8bitology
  • Liked: 196
  • Likes Given: 113
Re: USB game controllers and mice
« Reply #84 on: 08:29, 21 April 19 »
Hi Duke, I am interested in this more from the mouse support point of view, how is the mouse support currently? is it there or coming soon?

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.093
  • Country: dk
    • spinpoint.org
  • Liked: 1173
  • Likes Given: 838
Re: USB game controllers and mice
« Reply #85 on: 11:26, 21 April 19 »
Hi Duke, I am interested in this more from the mouse support point of view, how is the mouse support currently? is it there or coming soon?
Mouses are supported, but only as AMX mouse. I guess it's just as good or crap as existing interfaces, maybe someone who has both can tell. As I don't have AMX or  Bryce PS/2 interface.
My custom proportional  mode is not added to the release firmware, as there is no point since no software supports it.

Offline VincentGR

  • 6128 Plus
  • ******
  • Posts: 1.040
  • Country: gr
    • Parts from the past.
  • Liked: 519
  • Likes Given: 1442
Re: USB game controllers and mice
« Reply #86 on: 18:33, 21 April 19 »
As I think the mouse is working like that because the lacks of analog input, right?
What about the plus machines?
I think it has an analog port  :-X
To blit, or not to blit?
Amiga 1200 Black Project

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.093
  • Country: dk
    • spinpoint.org
  • Liked: 1173
  • Likes Given: 838
Re: USB game controllers and mice
« Reply #87 on: 22:56, 21 April 19 »
As I think the mouse is working like that because the lacks of analog input, right?
It only works like that because its how software is reading AMX mouse (as a joystick).
Proportional mouse support is easily possible through the digital port, just not with the current software support (patches needed).

Offline LambdaMikel

  • 6128 Plus
  • ******
  • Posts: 1.454
  • Country: us
    • Homepage
  • Liked: 813
  • Likes Given: 570
Re: USB game controllers and mice
« Reply #88 on: 03:40, 22 April 19 »
It only works like that because its how software is reading AMX mouse (as a joystick).
Proportional mouse support is easily possible through the digital port, just not with the current software support (patches needed).
I'd be interested in getting one when the next software version is out  :)

Offline XeNoMoRPH

  • 464 Plus
  • *****
  • Posts: 432
  • Country: es
  • " ... in space no one , can hear you scream ... "
  • Liked: 829
  • Likes Given: 748
Re: USB game controllers and mice
« Reply #89 on: 16:42, 22 April 19 »
adapter received:

This Chinese mouse is not detected:



On my Logitech G5 mouse , symbos detects the movement of the mouse but not the buttons:

and this other wireless works fine with symbos but with lag



and this other snes usb chinese works fine too



« Last Edit: 16:44, 22 April 19 by XeNoMoRPH »

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.093
  • Country: dk
    • spinpoint.org
  • Liked: 1173
  • Likes Given: 838
Re: USB game controllers and mice
« Reply #90 on: 19:45, 22 April 19 »

This Chinese mouse is not detected:

On my Logitech G5 mouse , symbos detects the movement of the mouse but not the buttons
and this other wireless works fine with symbos but with lag
Thanks for the feedback.

If you have a linux PC, could you please try to use usbhid-dump and send me the reports, then I can add/fix your mice.
It's done like this:
sudo usbhid-dump | grep -v : | xxd -r -p | hidrd-convert -o spec >report_for_duke.txt

If you only have windows, you can use trial version of USBLyzer. But I cannot remember the steps needed and my trial has expired. Will try to install it on another windows PC soon and note the needed steps to dump the USB HID report descriptor, which is what I need.
« Last Edit: 19:50, 22 April 19 by Duke »

Offline XeNoMoRPH

  • 464 Plus
  • *****
  • Posts: 432
  • Country: es
  • " ... in space no one , can hear you scream ... "
  • Liked: 829
  • Likes Given: 748
Re: USB game controllers and mice
« Reply #91 on: 20:47, 22 April 19 »
Thanks for the feedback.

If you have a linux PC, could you please try to use usbhid-dump and send me the reports, then I can add/fix your mice.
It's done like this:
sudo usbhid-dump | grep -v : | xxd -r -p | hidrd-convert -o spec >report_for_duke.txt

If you only have windows, you can use trial version of USBLyzer. But I cannot remember the steps needed and my trial has expired. Will try to install it on another windows PC soon and note the needed steps to dump the USB HID report descriptor, which is what I need.
ok , i will try  :D thx

Offline Maniac

  • CPC6128
  • ****
  • Posts: 178
  • Country: gb
  • Liked: 66
  • Likes Given: 32
Re: USB game controllers and mice
« Reply #92 on: 22:13, 22 April 19 »
Just had a chance to try out a Microsoft IntelliMouse Optical and although it lights up the Imperial Solo doesn’t seem to provide any output.




The mouse is PS/2 compatible and has the following USB HID information:



Device Descriptor
 USB version: 1.10
 Device class: 0x0 - (Defined at Interface level)
 Device subclass: 0x0 - Unknown
 Device protocol: 0x0 - Unknown
 Control pipe max size: 8 bytes
 Vendor ID: 0x45e (Microsoft Corp.)
 Product ID: 0x39 (IntelliMouse Optical)
 Product version: 1.21
 Manufacturer: Microsoft
 Product: Microsoft IntelliMouse® Optical
 Serial Number: Not specified
 Configurations: 1


descriptors[0] = "Configuration Descriptor"
bLength = 9
bDescriptorType = USB_CONFIGURATION_DESCRIPTOR_TYPE (2)
wTotalLength = 34
bNumInterfaces = 1
bConfigurationValue = 1
iConfiguration = 0
Reserved = 0
SupportsRemoteWakeup = 1
SelfPowered = 0
PoweredByBus = 1
MaxPower = 0x32 -> 100 mA
descriptors[1] = "Interface Descriptor"
bLength = 9
bDescriptorType = USB_INTERFACE_DESCRIPTOR_TYPE (4)
bInterfaceNumber = 0
bAlternateSetting = 0
bNumEndpoints = 1
bInterfaceClass = UsbHID (3)
bInterfaceSubClass = 1
bInterfaceProtocol = 2
iInterface = 0
descriptors[2] = "HID Descriptor"
bLength = 9
bDescriptorType = HID_HID_DESCRIPTOR_TYPE (33)
bcdHID = 1.00
bCountry = NotDefined (0)
bNumDescriptors = 1
reports = 
 reports[0] = 
  bReportType = 34
  wReportLength = 72
  raw =  7, 5, 129, 3, 4… 

HID Descriptor
Usage Page: 1 (Generic Desktop Controls)
Usage: 2 (Mouse)
Collection
Usage: 1 (Pointer)
Collection
Usage Page: 9 (Buttons)
Usages (1-5): Button 1 (Primary), Button 2 (Secondary), Button 3 (Tertiary), Button 4, Button 5
Logical Minimum: 0
Logical Maximum: 1
Report Size: 1
Report Count: 5
Input: 2 (Data,Variable,Absolute,No Wrap,Linear,Preferred State,No Null Position)
Report Size: 3
Report Count: 1
Input: 1 (Constant,Array,Absolute,No Wrap,Linear,Preferred State,No Null Position)
Usage Page: 1 (Generic Desktop Controls)
Usage: 48 (Direction-X)
Usage: 49 (Direction-Y)
Usage: 56 (Wheel)
Logical Minimum: -127
Logical Maximum: 127
Report Size: 8
Report Count: 3
Input: 6 (Data,Variable,Relative,No Wrap,Linear,Preferred State,No Null Position)
End Collection
Usage Page: 255 (Vendor Specific)
Usage: 2 (Unknown)
Logical Minimum: 0
Logical Maximum: 1
Report Size: 1
Report Count: 1
Feature: 34 (Data,Variable,Absolute,No Wrap,Linear,No Preferred State,No Null Position)
Report Size: 7
Report Count: 1
Feature: 1 (Constant,Array,Absolute,No Wrap,Linear,Preferred State,No Null Position)
End Collection
« Last Edit: 02:19, 23 April 19 by Maniac »

Offline XeNoMoRPH

  • 464 Plus
  • *****
  • Posts: 432
  • Country: es
  • " ... in space no one , can hear you scream ... "
  • Liked: 829
  • Likes Given: 748
Re: USB game controllers and mice
« Reply #93 on: 23:09, 22 April 19 »
Hi again Duke !!! , here are these two files with the information you ask me ,  these are the 2 usb mouse that I can not work properly
with USBlyzer

https://1fichier.com/?nxqylz7of98wsixoo9nr
https://1fichier.com/?jtgayabpz73jw841rnw2

Offline Maniac

  • CPC6128
  • ****
  • Posts: 178
  • Country: gb
  • Liked: 66
  • Likes Given: 32
Re: USB game controllers and mice
« Reply #94 on: 02:23, 23 April 19 »
Thanks for the feedback.

If you have a linux PC, could you please try to use usbhid-dump and send me the reports, then I can add/fix your mice.
It's done like this:
sudo usbhid-dump | grep -v : | xxd -r -p | hidrd-convert -o spec >report_for_duke.txt

If you only have windows, you can use trial version of USBLyzer. But I cannot remember the steps needed and my trial has expired. Will try to install it on another windows PC soon and note the needed steps to dump the USB HID report descriptor, which is what I need.



I've managed to find an alternative to USBLyzer which I believe pulls out this information in Windows and remains free Free USB Analyzer Overview (https://freeusbanalyzer.com/)

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.093
  • Country: dk
    • spinpoint.org
  • Liked: 1173
  • Likes Given: 838
Re: USB game controllers and mice
« Reply #95 on: 10:27, 23 April 19 »
Just had a chance to try out a Microsoft IntelliMouse Optical and although it lights up the Imperial Solo doesn’t seem to provide any output.
Thanks for the report.
Checking it with my HID parser, it seems without issue.
Please notice the LED on the Imperium Solo.
When no USB device detected, it flashes: 
1 second on, 1 second off ...
When a USB device is detected it flashes:
half a second on, half a second off ...

Hi again Duke !!! , here are these two files with the information you ask me ,  these are the 2 usb mouse that I can not work properly
with USBlyzer

https://1fichier.com/?nxqylz7of98wsixoo9nr
https://1fichier.com/?jtgayabpz73jw841rnw2
Thanks for the reports. However it seems they are identical and also passes my HID parser just fine. I wonder if this is the "main" mouse you have connected to your PC and not the report descriptor of the two troublesome mice?
Also please notice LED behaviour aswell.

I've managed to find an alternative to USBLyzer which I believe pulls out this information in Windows and remains free Free USB Analyzer Overview (https://freeusbanalyzer.com/)
Good find, thanks !

Offline Maniac

  • CPC6128
  • ****
  • Posts: 178
  • Country: gb
  • Liked: 66
  • Likes Given: 32
USB game controllers and mice
« Reply #96 on: 11:13, 23 April 19 »
Thanks for the report.
Checking it with my HID parser, it seems without issue.
Please notice the LED on the Imperium Solo.
When no USB device detected, it flashes: 
1 second on, 1 second off ...
When a USB device is detected it flashes:
half a second on, half a second off ...
I’ve just checked and can confirm that both the DualShock 3 and MS IntelliMouse cause USB device detection with half a second on/half off. However only the DualShock generates any output on screen. The mouse doesn’t generate anything even from the buttons I’m afraid.

Power cycled the Imperium Solo and no difference. Although one time when I plugged the mouse in after the DualShock it didn’t detect it. Power cycling sorted that though.

P.S. DualShock on Art Studio is very responsive but probably wouldn’t want to use it for drawing!!

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.093
  • Country: dk
    • spinpoint.org
  • Liked: 1173
  • Likes Given: 838
Re: USB game controllers and mice
« Reply #97 on: 20:20, 23 April 19 »
Imperium Solo firmware update v1.0.1
Changes:
  • Fix issue with MS mice (@Maniac)
Download:
https://www.spinpoint.org/files/ImperiumSolo_Amstrad_v101.zip

Instructions:
Unpack the file IMPERSOL.BIN to root directory of a USB stick (FAT32).
Insert it to Imperium Solo USB port and power it on. LED will be on shortly and once it starts flashing (few seconds later) firmware is updated.
Remove USB stick and insert mouse/gamepad.
File will be deleted from USB stick if succesful.
« Last Edit: 21:55, 23 April 19 by Duke »

Offline slugman

  • CPC464
  • **
  • Posts: 8
  • Country: fr
  • Liked: 7
  • Likes Given: 11
Re: USB game controllers and mice
« Reply #98 on: 22:32, 23 April 19 »
Hi Duke!
I flashed my imperium Solo with the update and it works now perfectly with MS branded mouses.  I tested successfully following Microsoft models:
.Intellimouse Explorer 3.0
.Notebook Optical Mouse
.Optical Mouse by Starck.
.Wheel Mouse Optical
.Optical Mouse blue
.Arc Touch Mouse
Probably all Microsoft models are now supported
« Last Edit: 22:43, 23 April 19 by slugman »

Offline XeNoMoRPH

  • 464 Plus
  • *****
  • Posts: 432
  • Country: es
  • " ... in space no one , can hear you scream ... "
  • Liked: 829
  • Likes Given: 748
Re: USB game controllers and mice
« Reply #99 on: 22:43, 23 April 19 »
Thanks for the reports. However it seems they are identical and also passes my HID parser just fine. I wonder if this is the "main" mouse you have connected to your PC and not the report descriptor of the two troublesome mice?
Also please notice LED behaviour aswell.
Good find, thanks !
Hi Again !!! duke , this two report are about my main mouse yes ... and the other mouse that I would like to work with symbos