1*20cbef82SFrançois Revol /* 2*20cbef82SFrançois Revol ** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 3*20cbef82SFrançois Revol ** Distributed under the terms of the OpenBeOS License. 4*20cbef82SFrançois Revol */ 5*20cbef82SFrançois Revol 6*20cbef82SFrançois Revol 7*20cbef82SFrançois Revol #include "keyboard.h" 8*20cbef82SFrançois Revol 9*20cbef82SFrançois Revol #include <boot/platform.h> 10*20cbef82SFrançois Revol 11*20cbef82SFrançois Revol 12*20cbef82SFrançois Revol /** Note, checking for keys doesn't seem to work in graphics 13*20cbef82SFrançois Revol * mode, at least in Bochs. 14*20cbef82SFrançois Revol */ 15*20cbef82SFrançois Revol 16*20cbef82SFrançois Revol static uint16 17*20cbef82SFrançois Revol check_for_key(void) 18*20cbef82SFrançois Revol { 19*20cbef82SFrançois Revol return 0; 20*20cbef82SFrançois Revol } 21*20cbef82SFrançois Revol 22*20cbef82SFrançois Revol 23*20cbef82SFrançois Revol extern "C" void 24*20cbef82SFrançois Revol clear_key_buffer(void) 25*20cbef82SFrançois Revol { 26*20cbef82SFrançois Revol while (check_for_key() != 0) 27*20cbef82SFrançois Revol ; 28*20cbef82SFrançois Revol } 29*20cbef82SFrançois Revol 30*20cbef82SFrançois Revol 31*20cbef82SFrançois Revol extern "C" union key 32*20cbef82SFrançois Revol wait_for_key(void) 33*20cbef82SFrançois Revol { 34*20cbef82SFrançois Revol union key key; 35*20cbef82SFrançois Revol key.ax=0; 36*20cbef82SFrançois Revol return key; 37*20cbef82SFrançois Revol } 38*20cbef82SFrançois Revol 39*20cbef82SFrançois Revol 40*20cbef82SFrançois Revol extern "C" uint32 41*20cbef82SFrançois Revol check_for_boot_keys(void) 42*20cbef82SFrançois Revol { 43*20cbef82SFrançois Revol return 0; 44*20cbef82SFrançois Revol } 45*20cbef82SFrançois Revol 46