00001 00006 /* 00007 * Copyright (c) 2001 Ross Crawford 00008 * 00009 * The contents of this file are subject to the Mozilla Public License 00010 * Version 1.0 (the "License"); you may not use this file except in 00011 * compliance with the License. You may obtain a copy of the License at 00012 * http://www.mozilla.org/MPL/ 00013 * 00014 * Software distributed under the License is distributed on an "AS IS" 00015 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the 00016 * License for the specific language governing rights and limitations 00017 * under the License. 00018 * 00019 */ 00020 00021 #ifndef _REMOTE_H 00022 #define _REMOTE_H 00023 00024 #ifdef __cplusplus 00025 extern "C" { 00026 #endif 00027 00028 #include <config.h> 00029 00030 #ifdef CONF_LR_HANDLER 00031 00032 00034 #define LR_TIMEOUT 100 00035 00037 #define LRKEY_M1 0x1 00038 00039 #define LRKEY_M2 0x2 00040 00041 #define LRKEY_M3 0x4 00042 00043 #define LRKEY_A1 0x8 00044 00045 #define LRKEY_B1 0x10 00046 00047 #define LRKEY_C1 0x20 00048 00049 #define LRKEY_A2 0x40 00050 00051 #define LRKEY_B2 0x80 00052 00053 #define LRKEY_C2 0x100 00054 00055 #define LRKEY_P1 0x200 00056 00057 #define LRKEY_P2 0x400 00058 00059 #define LRKEY_P3 0x800 00060 00061 #define LRKEY_P4 0x1000 00062 00063 #define LRKEY_P5 0x2000 00064 00065 #define LRKEY_STOP 0x4000 00066 00067 #define LRKEY_BEEP 0x8000 00068 00070 enum _evt { 00071 LREVT_KEYON = 1, 00072 LREVT_KEYOFF = 2 00073 } EventType; 00074 00076 00080 typedef int (*lr_handler_t) (unsigned int, unsigned int); 00081 00083 extern lr_handler_t lr_handler; 00084 00086 void lr_startup(void); 00088 void lr_init(void); 00090 void lr_shutdown(void); 00091 00093 00097 extern inline void lr_set_handler(lr_handler_t handler) { 00098 lr_handler = handler; 00099 } 00100 00102 #define LR_DUMMY_HANDLER ((lr_handler_t)0) 00103 00104 #endif // CONF_TM 00105 00106 #ifdef __cplusplus 00107 } 00108 #endif 00109 00110 #endif
brickOS is released under the
Mozilla Public License.
Original code copyright 1998-2002 by the authors. |