summaryrefslogtreecommitdiff
path: root/atari
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2013-10-05 23:31:42 +0200
committerOle Loots <ole@monochrom.net>2013-10-06 01:24:20 +0200
commitfa5a22d65f307d608e8c3f9d090df3c3562d2a82 (patch)
tree218191d86d4e619d9aaf8e3f3681981a9ca68de2 /atari
parent2f4d17dea017cf4f79a93a5c75397d5a6a14de81 (diff)
downloadnetsurf-fa5a22d65f307d608e8c3f9d090df3c3562d2a82.tar.gz
netsurf-fa5a22d65f307d608e8c3f9d090df3c3562d2a82.tar.bz2
Added comments
Diffstat (limited to 'atari')
-rwxr-xr-xatari/misc.c7
-rwxr-xr-xatari/misc.h6
2 files changed, 13 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);
diff --git a/atari/misc.h b/atari/misc.h
index f533f483f..948b22526 100755
--- a/atari/misc.h
+++ b/atari/misc.h
@@ -57,7 +57,13 @@ hlcache_handle *load_icon( const char *name, hlcache_handle_callback cb,
void dbg_grect(const char * str, GRECT * r);
void dbg_pxy(const char * str, short * pxy);
void dbg_rect(const char * str, int * pxy);
+
const char * file_select( const char * title, const char * name );
+
+/**
+ * Convert NKC (atari normalized key code) to netsurf
+ * Input key code and/or to ucs4 (depends on keycode).
+*/
long nkc_to_input_key(short nkc, long * ucs4_out);
#endif