ultimatepp/rainbow/LinuxFb/LinuxFbLocal.h
kohait 60cfcb0e44 rainbow: 'quit' porting and some minor cleanup
git-svn-id: svn://ultimatepp.org/upp/trunk@3674 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-07-19 08:35:13 +00:00

45 lines
814 B
C

#ifndef _LinuxFb_LinuxFbLocal_h
#define _LinuxFb_LinuxFbLocal_h
#include <unistd.h>
#include <stdio.h>
#include <fcntl.h>
#include <linux/fb.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <termios.h>
#include <sys/vt.h>
//#include <sys/kd.h>
#include <CtrlCore/CtrlCore.h>
NAMESPACE_UPP
extern int fbfd;
extern struct fb_var_screeninfo vinfo;
extern struct fb_fix_screeninfo finfo;
extern long int screensize;
extern char *fbp;
extern int mouse_fd;
extern bool mouse_imps2;
extern Point mousep;
extern int mouseb;
extern int keyb_fd;
extern int cvt;
int has_imps2(int fd);
int set_imps2(int fd, int b);
int readevents(int ms);
void handle_mouse();
void handle_keyboard();
dword fbKEYtoK(dword chr);
END_UPP_NAMESPACE
#endif