BeebEm Custom Keyboard Mapping

handy tools that can assist in the development of new software
Post Reply
RoboJ1M
Posts: 47
Joined: Tue Aug 30, 2022 1:09 am
Contact:

BeebEm Custom Keyboard Mapping

Post by RoboJ1M »

Hi,

I'm in hospital for the foreseeable future so I going to continue developing on BeebEm.
Problem is, BeebEm's default keyboard mappings don't work, the custom mapping form is unfathomable and the documentation is out to lunch.
This is the problem I'm trying to solve, typing tilde, '~'
So, Caret '^' and Tilde are on the same key.
And on a regular keyboard Caret is Shift-6 and on mine Tilde is Shift-#
I've mapped PC-Shift to BBC-Shift (it was unmapped for some reason??)
And then I think you're supposed to click BBC-^ and then check shift, followed by check shift and PC-#?
But when I go back to the Beeb and press PC-Shift-6 in types an up arrow?!?!
And if I press PC-Shift-# I get the divide symbol!! ](*,)
I hope someone can help, I'm trapped in this hospital for months and I need something to do but BeebEm is driving me insane! #-o

Or has anybody documented the kmap file format?
It might be easier to just write that out instead!
Or maybe write my own configurator.

TIA,

J1M.
User avatar
baz4096
Posts: 1103
Joined: Sat Apr 10, 2021 3:51 pm
Location: Baildon, West Yorkshire
Contact:

Re: BeebEm Custom Keyboard Mapping

Post by baz4096 »

Are you in mode 7 by any chance? Try a non-teletext mode.
julie_m
Posts: 587
Joined: Wed Jul 24, 2019 9:53 pm
Location: Derby, UK
Contact:

Re: BeebEm Custom Keyboard Mapping

Post by julie_m »

RoboJ1M wrote: Sat Feb 24, 2024 1:37 amThis is the problem I'm trying to solve, typing tilde, '~'
So, Caret '^' and Tilde are on the same key.
And on a regular keyboard Caret is Shift-6 and on mine Tilde is Shift-#
I've mapped PC-Shift to BBC-Shift (it was unmapped for some reason??)
And then I think you're supposed to click BBC-^ and then check shift, followed by check shift and PC-#?
But when I go back to the Beeb and press PC-Shift-6 in types an up arrow?!?!
And if I press PC-Shift-# I get the divide symbol!! ](*,)
You almost certainly are using MODE 7; which uses a slightly different character set, generated by the SAA5250 Teletext character generator IC, from the legends on the keyboard, but also requires only one byte to store the character code at each screen position. MODEs 0 to 6 use Acorn's own graphics hardware to generate the display; but in these modes, the colour of every individual pixel is stored separately, which swallows up more memory.

In MODE 7, an opening square bracket [ displays as a left arrow, a backslash \ displays as 1/2, a closing square bracket displays as a right arrow, an exclusive-or sign ^ (which the BBC actually takes to mean **; the exclusive-or operator is EOR) displays as an up arrow; an opening posh bracket { displays 1/4, a vertical bar | displays as a double vertical bar, a closing posh bracket } displays as 3/4 and a tilde ~ displays as a calculator division sign ÷ .

Type MODE 6 for a display mode that will match the key legends (but be aware this will use up 8KB for the screen, as opposed to 1KB in MODE 7).

As far as the computer is concerned, the characters have the same meaning irrespective how they be displayed.
Post Reply

Return to “development tools”