is it possible to redefine the pre defined keys on a sam coupe?
is it possible to redefine the pre defined keys on a sam coupe?
or use key codes? ive looked into this but its incredibly confusing. using key and def keycode... i want to say reassign the ctrl 'p' key and shift to output palette instead of print or 'p' and shift to output palette for example. how do i do this?
i started programming the spectrum when i was 8 :-
1 plot rnd*255,rnd*175
2 goto 1
http://zxspeccy.great-site.net/
1 plot rnd*255,rnd*175
2 goto 1
http://zxspeccy.great-site.net/
Re: is it possible to redefine the pre defined keys on a sam coupe?
I think some keys cannot be redefined. Starting simple:
Will make f3 produce palette.
Will make p produce palette, 66 is the code for the p key (see keyboard map in appendix). Add the modifier 70 for shift:
And shift p will produce palette, in a similar vein add the modifier 210 for cntrl:
Should result in cntrl p producing palette, but it does not.
I have to admit that back in the day reassigning a function key or two was more than sufficient for my needs.
Code: Select all
def keycode 195:palette:
Code: Select all
key 66,195
def keycode 195:palette:
Code: Select all
key 66+70,195
def keycode 195:palette:
Code: Select all
key 66+210,195
def keycode 195:palette:
I have to admit that back in the day reassigning a function key or two was more than sufficient for my needs.
Re: is it possible to redefine the pre defined keys on a sam coupe?
thank you. it does work btw by using the other ctrl key in sim coupe
i started programming the spectrum when i was 8 :-
1 plot rnd*255,rnd*175
2 goto 1
http://zxspeccy.great-site.net/
1 plot rnd*255,rnd*175
2 goto 1
http://zxspeccy.great-site.net/
Re: is it possible to redefine the pre defined keys on a sam coupe?
140 maps to left ctrl on sim coupe
i started programming the spectrum when i was 8 :-
1 plot rnd*255,rnd*175
2 goto 1
http://zxspeccy.great-site.net/
1 plot rnd*255,rnd*175
2 goto 1
http://zxspeccy.great-site.net/