summaryrefslogtreecommitdiff
path: root/atari/misc.c
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2013-10-05 23:31:42 +0200
committerOle Loots <ole@monochrom.net>2013-10-05 23:31:42 +0200
commit55bac8fc2f39c3b7e3d01abb04de9b11ad8bc90a (patch)
tree30a409fd938c59087029caa73237e972757dfc4e /atari/misc.c
parentcee7ab4e3aba6ffad9a19ab03bf2d04d6ed59823 (diff)
downloadnetsurf-55bac8fc2f39c3b7e3d01abb04de9b11ad8bc90a.tar.gz
netsurf-55bac8fc2f39c3b7e3d01abb04de9b11ad8bc90a.tar.bz2
Added comments
Diffstat (limited to 'atari/misc.c')
-rwxr-xr-xatari/misc.c7
1 files changed, 7 insertions, 0 deletions
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);