[ION] FLTK keyboard driver

This commit is contained in:
Romain Goyet
2015-09-01 22:56:29 +02:00
parent 0f0e1b3d98
commit ec594b7d9e
4 changed files with 27 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
#include "fltkkbd.h"
FltkKBD::FltkKBD(int x, int y, int w, int h) :
Fl_Group(x, y, w, h) {
}
bool FltkKBD::scankey(ion_key_t key) {
return false;
}

View File

@@ -0,0 +1,15 @@
#ifndef ION_FLTK_KBD
#define ION_FLTK_KBD
#include <FL/Fl_Group.H>
extern "C" {
#include <ion/keyboard.h>
}
class FltkKBD : public Fl_Group {
public:
FltkKBD(int x, int y, int w, int h);
bool scankey(ion_key_t key);
};
#endif

View File

@@ -1,5 +1,5 @@
objs += $(addprefix ion/platform/simulator/, init.o keyboard.o platform.o)
objs += $(addprefix ion/drivers/, fltklcd/fltklcd.o)
objs += $(addprefix ion/drivers/, fltklcd/fltklcd.o fltkkbd/fltkkbd.o)
#SFLAGS += -I/usr/local/Cellar/fltk/1.3.3/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT
LDFLAGS += -L/usr/local/Cellar/fltk/1.3.3/lib -lfltk -lpthread -framework Cocoa

View File

@@ -2,12 +2,14 @@
#define ION_SIMULATOR_PLATFORM_H
#include <ion/drivers/fltklcd/fltklcd.h>
#include <ion/drivers/fltkkbd/fltkkbd.h>
extern "C" {
#include "framebuffer.h"
}
typedef struct {
FltkLCD * display;
FltkKBD * keyboard;
} platform_t;
extern platform_t Platform;