source: xtideuniversalbios/trunk/XTIDE_Universal_BIOS/Inc/HotkeyBar.inc@ 496

Last change on this file since 496 was 492, checked in by gregli@…, 12 years ago

Removed the dependency between MODULE_BOOT_MENU and MODULE_HOTKEYS. With these changes, 0, 1, or 2 of them can be included in a build. This change also means that the hotkeys don't work while the menu is up. But the most important hotkey there was for Rom Boot, and that has been added to the menu as a choice proper. Lots of changes across the board in the hotkeys code - even if we eventually back this change out (becaue, for example we want hotkeys to work in the menu) we should probably start from this base and add that functionality back in, as these changes results in approximately 120 bytes of savings and includes new functionality, such as the Rom Boot menu item and the Com Detect hotkey.

File size: 1.1 KB
Line 
1; Project name : XTIDE Universal BIOS
2; Description : Equates and structs used in Hotkey Bar.
3
4;
5; XTIDE Universal BIOS and Associated Tools
6; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team.
7;
8; This program is free software; you can redistribute it and/or modify
9; it under the terms of the GNU General Public License as published by
10; the Free Software Foundation; either version 2 of the License, or
11; (at your option) any later version.
12;
13; This program is distributed in the hope that it will be useful,
14; but WITHOUT ANY WARRANTY; without even the implied warranty of
15; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16; GNU General Public License for more details.
17; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
18;
19
20%ifndef HOTKEYBAR_INC
21%define HOTKEYBAR_INC
22
23MIN_TIME_TO_DISPLAY_HOTKEY_BAR EQU (5000/55) ; 5000 ms
24
25ROM_BOOT_HOTKEY_SCANCODE EQU 42h ; F8
26
27%ifdef MODULE_BOOT_MENU
28BOOT_MENU_HOTKEY_SCANCODE EQU 3Ch ; F2
29%endif
30
31%ifdef MODULE_SERIAL
32COM_DETECT_HOTKEY_SCANCODE EQU 40h ; F6
33%endif
34
35%endif ; HOTKEYBAR_INC
Note: See TracBrowser for help on using the repository browser.