Author Topic: CPCE Joystick Support?  (Read 5635 times)

0 Members and 1 Guest are viewing this topic.

Offline Xyphoe

  • 6128 Plus
  • ******
  • Posts: 901
  • Country: gb
    • GX4000.CO.UK
  • Liked: 336
  • Likes Given: 187
CPCE Joystick Support?
« on: 07:41, 25 November 10 »
Hi

Just wondering if CPCE has joystick support hidden away in it or a new version will be released with this?

It's rare but I've come across some Joystick *only* games like Express Raider where you can't even start without hitting the fire button!

Offline Xyphoe

  • 6128 Plus
  • ******
  • Posts: 901
  • Country: gb
    • GX4000.CO.UK
  • Liked: 336
  • Likes Given: 187
Re: CPCE Joystick Support?
« Reply #1 on: 07:57, 25 November 10 »
Ok my apologies, I've found the cpce.ini file and REDEFINE.COM

Problem is I can't run redefine.com as I'm on a 64bit Win7 O/S, and doesn't allow me to set 'compatibility mode' for .com files (.exe are ok)
Won't run from Command Prompt either.

I note in the cpce.ini file this line -

JOYSTICK_KEYS=48504B4D5253

I want to redefine them and not use the numeric pad, instead use up/down/left/right and have Z and X for fire buttons 1 and 2.
Can anyone help me with this by editing that line manually?

I presume characters respond to a key there, eg 48 = Numeric 4, 50 = Numeric 6, etc

Cheers!

Offline Xyphoe

  • 6128 Plus
  • ******
  • Posts: 901
  • Country: gb
    • GX4000.CO.UK
  • Liked: 336
  • Likes Given: 187
Re: CPCE Joystick Support?
« Reply #2 on: 19:42, 25 November 10 »
Actually a simpler solution would be if some kind fellow ran redefine.com and set up,down,left,right,z,x then copied into here the result code from the cpce.ini file that would be great :)

Still interested where it gets the 2 character codes from as it doesn't correspond to the key codes for Win I found Googling

Offline remax

  • 6128 Plus
  • ******
  • Posts: 1.121
  • Country: fr
  • Liked: 408
  • Likes Given: 451
Re: CPCE Joystick Support?
« Reply #3 on: 23:51, 25 November 10 »
JOYSTICK_KEYS=88908B8D2C2D

with an AZERY keyboard so i use W and X on mine (should give Z and X on QWERTY).

Offline Xyphoe

  • 6128 Plus
  • ******
  • Posts: 901
  • Country: gb
    • GX4000.CO.UK
  • Liked: 336
  • Likes Given: 187
Re: CPCE Joystick Support?
« Reply #4 on: 06:38, 26 November 10 »
JOYSTICK_KEYS=88908B8D2C2D

with an AZERY keyboard so i use W and X on mine (should give Z and X on QWERTY).

Awesome! That works perfectly - thank you!!!

Offline Beaps

  • CPC664
  • ***
  • Posts: 133
  • Country: gb
  • Liked: 5
  • Likes Given: 3
Re: CPCE Joystick Support?
« Reply #5 on: 02:22, 28 April 13 »
I to am struggling to get keys to work. I am running 64Bit XP & redefine.exe does not work
any help would be appriciated

Offline Beaps

  • CPC664
  • ***
  • Posts: 133
  • Country: gb
  • Liked: 5
  • Likes Given: 3
Re: CPCE Joystick Support?
« Reply #6 on: 21:23, 02 May 13 »
Still looking for help on this, how can I use my joystick in CPCE as redefine.exe doesn't work :-/

Offline cngsoft

  • CPC6128
  • ****
  • Posts: 158
  • Country: es
  • Liked: 634
  • Likes Given: 360
Re: CPCE Joystick Support?
« Reply #7 on: 16:59, 26 May 13 »
Still looking for help on this, how can I use my joystick in CPCE as redefine.exe doesn't work :-/
The previous posts tell you how to edit CPCE.INI to set the joystick-on-keys option to your convenience. Oh, and remember to hit Lock Num inside the emulator to enable it :-)
(if you can't see the banner right now my server is currently offline)

Offline Beaps

  • CPC664
  • ***
  • Posts: 133
  • Country: gb
  • Liked: 5
  • Likes Given: 3
Re: CPCE Joystick Support?
« Reply #8 on: 17:02, 26 May 13 »
Great, I will give that a bash & report back

THANKS!

Offline Beaps

  • CPC664
  • ***
  • Posts: 133
  • Country: gb
  • Liked: 5
  • Likes Given: 3
Re: CPCE Joystick Support?
« Reply #9 on: 22:45, 26 May 13 »
Ok, still confused :-(

In the .ini file I already have joystick_keys=88908B8D2C2C

Can someone please post the ini file?

Offline cngsoft

  • CPC6128
  • ****
  • Posts: 158
  • Country: es
  • Liked: 634
  • Likes Given: 360
Re: CPCE Joystick Support?
« Reply #10 on: 23:54, 28 May 13 »
Here you have the values for QAOP+Space+Tab:
 JOYSTICK_KEYS=101E1819390F
 Remember to hit Num.Lock when CPCE is active to toggle the joystick-on-keys mode!

For the curious, each hex byte is the scan code; they're hardware-based and are the same on DOS and Win32 regardless of language. This saves CPCE the headaches of non-QWERTY locales (PC-CPC, I'm looking at you) but means that users must either set the ROM_LANGUAGE value or supply locale-accurate OS ROMs.
 
(if you can't see the banner right now my server is currently offline)

Offline Beaps

  • CPC664
  • ***
  • Posts: 133
  • Country: gb
  • Liked: 5
  • Likes Given: 3
Re: CPCE Joystick Support?
« Reply #11 on: 00:06, 29 May 13 »
Oh nuts, I am using a Logitech k400 keyboard that I don't think has a number lock. Just my bloody luck!

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 16.011
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3452
  • Likes Given: 6194
Re: CPCE Joystick Support?
« Reply #12 on: 23:10, 09 June 13 »
Have one myself and no, it doesn't have one since it doesn't even have a 'blue' numpad printed on the keys...