Is there a poke or some other way to do this?
edit - thanks for the replies
Disable Caps Lock in basic?
- presuminged
- Drutt
- Posts: 11
- Joined: Fri Dec 13, 2019 10:54 am
- Location: Leeds
- Contact:
Disable Caps Lock in basic?
Last edited by presuminged on Tue Feb 25, 2020 11:24 am, edited 1 time in total.
Re: Disable Caps Lock in basic?
You can toggle caps lock on and off with
POKE 23658,0 caps off
POKE 23658,8 caps on
POKE 23658,0 caps off
POKE 23658,8 caps on
- Ast A. Moore
- Rick Dangerous
- Posts: 2641
- Joined: Mon Nov 13, 2017 3:16 pm
Re: Disable Caps Lock in basic?
You could try writing to the FLAGS2 system variable (23658). Bit 3 is the CAPS LOCK flag. So POKE 23658,0 should work.
Every man should plant a tree, build a house, and write a ZX Spectrum game.
Author of A Yankee in Iraq, a 50 fps shoot-’em-up—the first game to utilize the floating bus on the +2A/+3,
and zasm Z80 Assembler syntax highlighter.
Author of A Yankee in Iraq, a 50 fps shoot-’em-up—the first game to utilize the floating bus on the +2A/+3,
and zasm Z80 Assembler syntax highlighter.
- alban lusitanae
- Drutt
- Posts: 28
- Joined: Fri Jun 28, 2019 1:49 pm
- Location: Portugal
- Contact:
Re: Disable Caps Lock in basic?
Follow up question, how about a POKE TO DISCONNECT THE CAPS KEY?
Re: Disable Caps Lock in basic?
I don't think you can, as its a ROM routine unless you're going to write your own key handling code for input perhaps. The ROM routine for keyscanning looks a bit messy (to my mind) with regards to doing this.alban lusitanae wrote: ↑Sun Mar 06, 2022 6:56 pm Follow up question, how about a POKE TO DISCONNECT THE CAPS KEY?
- alban lusitanae
- Drutt
- Posts: 28
- Joined: Fri Jun 28, 2019 1:49 pm
- Location: Portugal
- Contact:
Re: Disable Caps Lock in basic?
I remember there was a way to stop BREAK SPACE, so there should be a way to stop CAPS right?