[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Highwire edit



p.slegg@scubadivers.co.uk wrote:

I'm not a great user of C so I don't understand the purpose of the
last line. Is it not the same as:

	ascii_code = nkey;

No, with
ascii_code = nkey & 0x00FF; you get only the bits 0 to 7 form nkey. The bits 0 to 15 are zero (Bitwise And Operator).

Also, QED uses NK_CLRHOME, NK_UP, NK_DOWN etc. Are these defined in
a standard lib ?

No, they are from the cflib lib. Because that lib use the NKCC lib from Harald Siegmund[1]. This lib translate the scancodes from different keyboards to on system.

Gerhard

[1] http://www.smund.de/download.html