![]() |
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 KingdomPosts: 4311 |
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: AustraliaPosts: 2950 |
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 KingdomPosts: 4311 |
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 StatesPosts: 1427 |
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 KingdomPosts: 4311 |
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 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |