ZX redefine keys in C?

ZX80, ZX 81, ZX Spectrum, TS2068 and other clones
Post Reply
derekfountain
Member
Posts: 121
Joined: Mon Mar 26, 2018 1:49 pm

ZX redefine keys in C?

Post by derekfountain »

Has anyone got, or know of, a redefine keys routine suitable for a Spectrum game which I can borrow? Either in C, or callable from C. GPL licence or something more permissive with author's permission.

I can't believe I need to write such a thing from scratch!
cborn
Well known member
Posts: 267
Joined: Tue Oct 06, 2020 7:45 pm

Re: ZX redefine keys in C?

Post by cborn »

lol, that reminds me to my first hack attempts to get rid off that lousy 5678 syndrome

for a redefine routine offcourse you first need a key_routine with a place where those keys are stored
maybe that routine, if it exists, has a redifine input some where?
else you migth become a proud and famous C writer ??
derekfountain
Member
Posts: 121
Joined: Mon Mar 26, 2018 1:49 pm

Re: ZX redefine keys in C?

Post by derekfountain »

Heh, yes, it's not particularly hard to write, I was just after a shortcut. Given the time I spent looking for one I probably could have written it. :)

In case anyone else asks, there's one in Gandlaf.
stefano
Well known member
Posts: 2137
Joined: Mon Jul 16, 2007 7:39 pm

Re: ZX redefine keys in C?

Post by stefano »

Look at microman.c, -DJOYSTICK_DIALOG compile option.
A keyboard only game configuration screen is, in my opinion, part of the game personalization and gamer experience.
You are probably not willing to recycle someone else's look and feel for the final version of your games.
Post Reply