dkey.h
Go to the documentation of this file.
1
6/*
7 * The contents of this file are subject to the Mozilla Public License
8 * Version 1.0 (the "License"); you may not use this file except in
9 * compliance with the License. You may obtain a copy of the License
10 * at http://www.mozilla.org/MPL/
11 *
12 * Software distributed under the License is distributed on an "AS IS"
13 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14 * the License for the specific language governing rights and
15 * limitations under the License.
16 *
17 * The Original Code is legOS code, released October 17, 1999.
18 *
19 * The Initial Developer of the Original Code is Markus L. Noga.
20 * Portions created by Markus L. Noga are Copyright (C) 1999
21 * Markus L. Noga. All Rights Reserved.
22 *
23 * Contributor(s): Markus L. Noga <markus@noga.de>
24 */
25
26#ifndef __dkey_h__
27#define __dkey_h__
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33#include <config.h>
34#ifdef CONF_DKEY
35
36#include <tm.h>
37
39//
40// Definitions
41//
43
44#define KEY_ONOFF 0x01
45#define KEY_RUN 0x02
46#define KEY_VIEW 0x04
47#define KEY_PRGM 0x08
48
49#define KEY_ANY 0x0f
50
52//
53// Variables
54//
56
58
60extern volatile unsigned char dkey_multi;
61
63
65extern volatile unsigned char dkey;
66
68//
69// Functions
70//
72
73
75//
77
79//
81
83
85extern int getchar();
86
87#endif // CONF_DKEY
88
89#ifdef __cplusplus
90}
91#endif
92
93#endif // __dkey_h__
wakeup_t dkey_released(wakeup_t data)
wakeup if all of the given keys are released.
volatile unsigned char dkey
the current key
volatile unsigned char dkey_multi
the currently active keys
wakeup_t dkey_pressed(wakeup_t data)
wakeup if any of the given keys is pressed.
int getchar()
wait for keypress and return key code.
Interface: task management.
unsigned long wakeup_t
wakeup data area type
Definition tm.h:57

brickOS is released under the Mozilla Public License.
Original code copyright 1998-2005 by the authors.

Generated for brickOS C++ by doxygen 1.9.8