lib/kbhit.hh
00001 // キーボード入力検知 (Unix版)
00002 // 2011/02/14 Yuki YOKOKURA
00003 //
00004 // キーボードのボタンが何か押されたかどうか調べる
00005 //
00006 // Copyright (C) 2011 Yuki YOKOKURA
00007 // This program is free software;
00008 // you can redistribute it and/or modify it under the terms of the GNU General Public License
00009 // as published by the Free Software Foundation; either version 3 of the License, or any later version.
00010 // This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
00011 // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00012 // See the GNU General Public License for more details <http://www.gnu.org/licenses/>.
00013 // Besides, you can negotiate about other options of licenses instead of GPL.
00014 // If you would like to get other licenses, please contact us<yuki@katsura.sd.keio.ac.jp>.
00015 
00016 #ifndef KBHIT
00017 #define KBHIT
00018 
00019 #include <unistd.h>
00020 #include <sys/time.h>
00021 
00022 int kbhit(void);        // キー入力があった場合に1を返す なければ0を返す
00023 
00024 #endif
00025 
 All Classes Files