mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[ION] FLTK keyboard driver
This commit is contained in:
9
ion/drivers/fltkkbd/fltkkbd.cpp
Normal file
9
ion/drivers/fltkkbd/fltkkbd.cpp
Normal 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;
|
||||
}
|
||||
15
ion/drivers/fltkkbd/fltkkbd.h
Normal file
15
ion/drivers/fltkkbd/fltkkbd.h
Normal 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
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user