platotermClassicMac/keyboard.h
2019-01-25 16:09:42 -06:00

32 lines
681 B
C
Executable File

/**
* PLATOTerm64 - A PLATO Terminal for the Commodore 64
* Based on Steve Peltz's PAD
*
* Author: Thomas Cherryhomes <thom.cherryhomes at gmail dot com>
*
* keyboard.h - Keyboard functions
*/
#ifndef KEYBOARD_H
#define KEYBOARD_H
/**
* keyboard_out - If platoKey < 0x7f, pass off to protocol
* directly. Otherwise, platoKey is an access key, and the
* ACCESS key must be sent, followed by the particular
* access key from PTAT_ACCESS.
*/
void keyboard_out(int platoKey);
/**
* keyboard_main - Handle the keyboard presses
*/
void keyboard_main(void);
/**
* keyboard_out_tty - keyboard output to serial I/O in TTY mode
*/
void keyboard_out_tty(int ch);
#endif