Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:40 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : CMM2: can a program determine value of OPTION USBKEYBOARD ?

Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 07:36pm 17 Oct 2020
Copy link to clipboard 
Print this post

Why would we want to?

Consider TweakerRay's Mr. Polysynth synthesiser. It uses the QWERTY row as the white keys ... Unfortunately that row isn't QWERTY on all international keyboards, e.g. the German keyboard transposes Y and Z. If you can't read USBKEYBOARD then I don't think the difference can be handled automatically?

Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
bigmik

Guru

Joined: 20/06/2011
Location: Australia
Posts: 2950
Posted: 11:57pm 17 Oct 2020
Copy link to clipboard 
Print this post

Hi Tom,

We all know I am not a good programmer but you could, in these circumstances, read in a config file to support these different hardware items (it doesn’t have to be limited to keyboards of course). So the program could be written to have a SETTINGS menu that a user can configure to meet their environment.
The program when it runs should read the config file so no need to set the configurations each time it runs.

You could set default volumes, Mouse or Joy stick types and addresses etc etc.

Regards,

Mick
Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 07:32am 18 Oct 2020
Copy link to clipboard 
Print this post

A fair point well made Mick. But given the firmware knows the answer is not unreasonable for it to be asked the question.

Peter may already have added support for this when he added Mm.Info(Option ...) but I suspect not and I was away from the CMM2 when the question occurred.

If not then the fact that I have provided a valid use case might cause him to add it, he's good like that, after the prerequisite grumpiness

Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 04:30pm 18 Oct 2020
Copy link to clipboard 
Print this post

I thought that the format for the RAM area where OPTIONS are kept was shared. If not, it should be documented. Then PEEK would get you what you need. Grumpiness avoided.
Micromites and Maximites! - Beginning Maximite
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 04:46pm 18 Oct 2020
Copy link to clipboard 
Print this post

Where's the fun in that?

Seriously though, I think Peter is wise to discourage us from too much PEEKing outside our own variables, anything else would risk backward compatibility problems in the future.

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025