From fa5a22d65f307d608e8c3f9d090df3c3562d2a82 Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Sat, 5 Oct 2013 23:31:42 +0200 Subject: Added comments --- atari/misc.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'atari/misc.c') diff --git a/atari/misc.c b/atari/misc.c index 2a22e166c..2893bde5f 100755 --- a/atari/misc.c +++ b/atari/misc.c @@ -330,6 +330,13 @@ void gem_set_cursor( MFORM_EX * cursor ) flags = cursor->flags; } +/** + * Convert NKC (atari normalized key code) to netsurf + * Input key code and/or to ucs4 (depends on keycode). + * When the input key can not be found for the NKC, + * the function will return 0 and fill ucs4_out with + * the NKC converted to UC4 encoding. +*/ long nkc_to_input_key(short nkc, long * ucs4_out) { unsigned char ascii = (nkc & 0xFF); -- cgit v1.2.3