/usr/share/z88dk/include/oz700/ozinput.h is in z88dk-data 1.8.ds1-10.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | /*
HTC Compatibility Library and OZ extras
2. KEYBOARD AND INPUT
$Id: ozinput.h,v 1.5 2003/10/27 16:56:56 stefano Exp $
*/
#ifndef _OZINPUT_H
#define _OZINPUT_H
#ifndef _OZ_BYTE
typedef unsigned char byte;
#define _OZ_BYTE
#endif
/* functions renamed to have a double mode
use the -DOZDK parameter to activate this */
#ifdef OZDK
extern int __LIB__ oznkeyhit2(void);
extern int __LIB__ ozkeyhit2(void);
extern unsigned __APPFUNC__ __LIB__ ozgetch2(void);
extern unsigned __LIB__ ozngetch2(void);
extern unsigned __LIB__ ngetch2(void);
extern __LIB__ ozungetch2(unsigned key);
#endif
extern __LIB__ ozrestorekeysettings(void);
extern __LIB__ ozsavekeysettings(void);
#define SETTINGS_LENGTH 14
extern __LIB__ ozcopyfromcursettings(byte *p);
extern __LIB__ ozcopytocursettings(byte *p);
#define OZEDITLINE_ERROR -2
#define OZEDITLINE_CANCEL -1
//extern int __LIB__ ozeditline(byte x0,byte y0,char *s,byte slen,byte xlen);
extern int __LIB__ ozeditline(byte x0,byte y0,char *s,byte slen,byte xlen);
extern __LIB__ ozkbdon(void);
extern __LIB__ ozkbdoff(void);
extern __LIB__ ozkeyclear(void);
extern byte __LIB__ ozkeyupper(byte mask);
extern byte __LIB__ ozkeylower(byte mask);
//extern unsigned __LIB__ getch(void);
//extern int __LIB__ kbhit(void);
//extern int __LIB__ nkbhit(void);
extern byte __LIB__ ozgetrepeatspeed(void);
extern byte __LIB__ ozgetrepeatdelay(void);
extern __LIB__ ozsetrepeatspeed(byte val);
extern __LIB__ ozsetrepeatdelay(byte val);
extern __LIB__ ozclick(byte state);
extern byte __LIB__ ozgetclick(void);
extern byte _ozkeyrepeatspeed;
extern byte _ozkeyrepeatdelay;
#ifndef _OZMENU_H
#define _OZMENU_H
struct ozmenuentry
{
unsigned key;
char *label;
};
extern int __LIB__ ozmenu(int x,int y,char *title,unsigned start,unsigned num_entries,
struct ozmenuentry *menu, byte options);
#define OZMENU_NUMBERED 1
#define OZMENU_NOEXIT 2
#define OZMENU_NOLIGHT 4
#endif
/* for ozgetch() */
#define KEY_LEFT_SHIFT 0x0800
#define KEY_RIGHT_SHIFT 0x8036
#define KEY_2ND 0x8037
#define KEY_LOWER_ESC 0x8058
#define KEY_UPPER_ESC 0x8067
#define KEY_NEWLINE 0x0D
#define KEY_RETURN 0x0D
#define KEY_MYPROGRAMS 0x7015
#define KEY_MAIN 0x7025
#define KEY_USER1 0x70E9
#define KEY_USER2 0x70EA
#define KEY_USER3 0x70EB
#define KEY_TELEPHONE KEY_USER1
#define KEY_SCHEDULE KEY_USER2
#define KEY_CALENDAR KEY_USER2
#define KEY_MEMO KEY_USER3
#define KEY_LOWER_MENU 0x8032
#define KEY_NEW 0x8033
#define KEY_BACKSPACE 0x0008
#define KEY_BACKSPACE_16K 0x8057
#define KEY_CATEGORY 0x8035
#define KEY_LOWER_ENTER 0x8038
#define KEY_POWER 0x803A
#define KEY_BACKLIGHT 0x803B
#define KEY_DOWN 0x8041
#define KEY_UP 0x8040
#define KEY_LEFT 0x8042
#define KEY_RIGHT 0x8043
#define KEY_PAGEUP 0x8044
#define KEY_PAGEDOWN 0x8045
#define KEY_DEL 0x8057
#define KEY_UPPER_ENTER 0x8066
#define KEY_UPPER_MENU 0x8068
/* for getch() */
#define NO_KEY 0xFFFF
#define MASKSHIFT 0x0800
#define MASKCATEGORY 0x0400
#define MASKCTRL 0x0200
#define MASK2ND 0x0100
#ifndef NULL
#define NULL ((void*)0)
#endif
extern unsigned __LIB__ ozautoofftime;
extern unsigned __LIB__ ozautoblanktime;
extern unsigned __LIB__ ozautolightofftime;
extern unsigned __LIB__ ozgetchblank(void);
#endif
|