QL & PC Joysticks

A place to discuss general QL issues.
stevepoole
Super Gold Card
Posts: 712
Joined: Mon Nov 24, 2014 2:03 pm

Re: QL & PC Joysticks

Post by stevepoole »

Hi per,

I just tested the keyrow(0) option, which failed, as reported. ( I am using QPC2 at present).

However the 'REPeat lp' code you suggested works perfectly...
Many thanks indeed !

So now I shall get on to finalising the game, which has become far more comfortable to play.
(I might rewrite some of the flying controls, for greater manoeuvrability too).

Regards,
Steve.


User avatar
pjw
QL Wafer Drive
Posts: 1286
Joined: Fri Jul 11, 2014 8:44 am
Location: Norway
Contact:

Re: QL & PC Joysticks

Post by pjw »

stevepoole wrote:Hi per,

I just tested the keyrow(0) option, which failed, as reported. ( I am using QPC2 at present).
It should still work on a real QL. Would be interesting to know where it fails. I just tried the following on
Q-emulator with JS and with Minerva 1.98 (Adjust the loop count according to the speed of your
system):

Code: Select all

100 CLS: PRINT 'Press some keys while loop runs..'
110 FOR i = 0 TO 999
120 AT 1, 0: PRINT i,
130 END FOR i
140 :
150 PRINT\ 'Now press any key',
160 k = KEYROW(0)
170 REMark REPeat lp: IF INKEY$(#0; 0) = "": EXIT lp: END IF: END REPeat lp
180 PRINT INKEY$(#0; -1)
and it worked as expected. However, only the line 170 version worked on QPC2. Still, Im not convinced it
has to do with SMSQ/E, as Im sure I used it with similar code on Atari+SMSQ/E back in 2006.
However the 'REPeat lp' code you suggested works perfectly...
Many thanks indeed !
It may not work equally well across the board, eg on a Q68.. Perhaps someone could try and report back?
So now I shall get on to finalising the game, which has become far more comfortable to play.
(I might rewrite some of the flying controls, for greater manoeuvrability too).
Good luck with that :)


Per
dont be happy. worry
- ?
User avatar
mk79
QL Wafer Drive
Posts: 1349
Joined: Sun Feb 02, 2014 10:54 am
Location: Esslingen/Germany
Contact:

Re: QL & PC Joysticks

Post by mk79 »

pjw wrote:I had this problem years ago and wrote a small toolkit to solve it. Then I discovered that a dummy keyrow call before the inkey$ does the same. Are you saying this doesnt work for you?
QDOS does this, Minerva does this, but apparently SMSQ/E has never done this. Not sure if by choice or by accident, though I guess it's the latter.

Marcel


stevepoole
Super Gold Card
Posts: 712
Joined: Mon Nov 24, 2014 2:03 pm

Re: QL & PC Joysticks

Post by stevepoole »

Hi,
My troubles are over.
Here is where to look on the web for a cable converter for a QL Joystick :

UGREEN Câble Série USB avec Chip PL2303 Câble USB 2.0 vers RS232 DB9 Mâle à Mâle

Regards,
Steve.


User avatar
QLvsJAGUAR
Gold Card
Posts: 455
Joined: Tue Feb 15, 2011 8:42 am
Location: Lucerne, Switzerland
Contact:

Re: QL & PC Joysticks

Post by QLvsJAGUAR »

stevepoole wrote:Capture d’écran (59).png
This is my first attempt to load a screenshot...
Looks good and promising. Please keep us updated.


QL forever!
https://www.sinclairql.net/ - Go and get THE DISTRIBUTION & QL/E!
https://www.youtube.com/QLvsJAGUAR/community - Blog
https://www.youtube.com/QLvsJAGUAR - Dedicated QL videos
Sinclair, QL, ATARI, JAGUAR, NUON, APPLE, NeXT, MiST & much more...
Videos, pictures & information
stevepoole
Super Gold Card
Posts: 712
Joined: Mon Nov 24, 2014 2:03 pm

Re: QL & PC Joysticks

Post by stevepoole »

Hi Urs,
As it stands, the game is playable, but I am hoping to improve it, so that instead of flying 'around' the scenery, you can fly 'through' it.
If you would like a preview, PM me your email address, and I will send it to you to get your opinion of it.
The 'fly through' option will not be easy to implement... as it will require so many 'off-screen' checks, that the program will be slugged !
(As I said previously, this was just an exercise to test out some revised 3D core routines).

Regards,
Steve.


stevepoole
Super Gold Card
Posts: 712
Joined: Mon Nov 24, 2014 2:03 pm

Re: QL & PC Joysticks

Post by stevepoole »

Hi Folks,
I bought an 8$ USB-adapter cable for my QL Joystick, but my W 8.1 laptop turned it off after a second.
So I tried it on my XP PC and it stayed turned on, but with no button responses, (and no internet connection available).
Back on the laptop, I downloaded JOYtoKEY software, and plugged in rhe stick.
Yes ! I ws able to reconfigure all the stick buttons at will.
And now it works fine with my QL programs, and can be reconfigured for each.
A very good program, this JOYtoKEY...
Thanks to all of you for your advice !
Steve Poole.


Post Reply