-
Notifications
You must be signed in to change notification settings - Fork 1
/
autotype.h
56 lines (46 loc) · 1.65 KB
/
autotype.h
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
/**
* @file
* @author Miguel Vanhove / Kyuran <[email protected]>
* @author Kevin Thacker - Arnold emulator(c) Copyright 1995-2003
* @author Troels K <[email protected]> for the ASCII_TO_CPCKEY_MAP - http://cpcloader.trak.dk
* @version 2.0
*
* @section LICENSE
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details at
* https://www.gnu.org/copyleft/gpl.html
*
* @section DESCRIPTION
*
* Autotype
*/
#include "crocods.h"
#ifndef __AUTOTYPE_HEADER_INCLUDED__
#define __AUTOTYPE_HEADER_INCLUDED__
#ifdef __cplusplus
extern "C" {
#endif
void ASCII_to_CPC(core_crocods_t *core, int nASCII, BOOL bKeyDown);
/* auto-type is active and is "typing" */
#define AUTOTYPE_ACTIVE 0x01
/* auto-type is performing key release action */
/* if clear, auto-type is performing key press action */
#define AUTOTYPE_RELEASE 0x02
/* if set, auto-type is waiting for first keyboard scan to be done */
#define AUTOTYPE_WAITING 0x04
void AutoType_Init(core_crocods_t *core);
BOOL AutoType_Active(core_crocods_t *core);
void AutoType_SetString(core_crocods_t *core, const char *sString, BOOL bWaitInput);
void AutoType_Update(core_crocods_t *core);
#ifdef __cplusplus
}
#endif
#endif