-
Notifications
You must be signed in to change notification settings - Fork 0
/
phantom_typist.h
55 lines (33 loc) · 1.68 KB
/
phantom_typist.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
/* phantom_typist.h: starting game loading automatically
Copyright (c) 2017 Philip Kendall
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.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Author contact information:
E-mail: philip-fuse@shadowmagic.org.uk
*/
#ifndef FUSE_PHANTOM_TYPIST_H
#define FUSE_PHANTOM_TYPIST_H
void phantom_typist_register_startup(void);
/* Activate the phantom typist for a given machine, and optionally
for a tape that needs LOAD ""CODE rather than just LOAD "" */
void phantom_typist_activate(libspectrum_machine machine, int needs_code);
// Activate the phantom typist to load a +3 disk
void phantom_typist_activate_disk(void);
// Deactivate the phantom typist
void phantom_typist_deactivate(void);
// Get the result of any keys pressed by the phantom typist
libspectrum_byte phantom_typist_ula_read(libspectrum_word port);
// Returns non-zero if the phantom typist is active
int phantom_typist_is_active(void);
// Called each frame to update the phantom typist state
void phantom_typist_frame(void);
#endif // #ifndef FUSE_PHANTOM_TYPIST_H