Key click settings

A section for 'short' programming tips and tricks
Post Reply
User avatar
Daren
Posts: 138
Joined: Fri Sep 23, 2022 5:17 pm

Key click settings

Post by Daren »

A handy snippet for setting key click sound, I wrote it because I often want to turn key click off or make it louder. Value 0 is off, 1 is default, 2 is a good setting for (LZ) typing as it is louder without being annoying, 4-12 gives more of a chirp, 30+ gives a beep, beyond about 60 it could be annoying.
Works on 2 line or 4 line, I find it better than the other memory resident utilities that do this task as it won’t interfere with other memory resident code. Worth adding to menu if you change this setting often, feel free to use or modify as you see fit.

Code: Select all

KCLK:
LOCAL S%
PRINT
PRINT “ Current setting”,PEEKB(8384)
GET
PRINT
PRINT “   New setting?”
AT 17,2 :INPUT S%
POKEB 8384,S%
Default 2 line Psion machines setting is 1, but on LZ to get the same sound as the 2 line machines set LZ to 2, LZ default 1 is a bit too quiet for my taste when programming. YMMV
User avatar
Daren
Posts: 138
Joined: Fri Sep 23, 2022 5:17 pm

Re: Key click settings

Post by Daren »

I edited the above code slightly to improve the screen usage, so that text is more central, I also removed the final GET.
Post Reply