Skip to content

Commit

Permalink
disable top panel in pocketbook
Browse files Browse the repository at this point in the history
  • Loading branch information
chrox committed Jan 15, 2015
1 parent 1740696 commit 64ed78a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions Makefile.defs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ else ifeq ($(TARGET), win32)
else ifeq ($(TARGET), pocketbook)
CHOST?=arm-obreey-linux-gnueabi
export POCKETBOOK=1
export PATH:=$(CURDIR)/$(POCKETBOOK_TOOLCHAIN)/bin:$(PATH)
export SYSROOT=$(CURDIR)/$(POCKETBOOK_TOOLCHAIN)/arm-obreey-linux-gnueabi/sysroot
endif

Expand Down
11 changes: 9 additions & 2 deletions input.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,13 @@ static inline void genEmuEvent(int fd, int type, int code, int value) {
}

int pb_event_handler(int type, int par1, int par2) {
//printf("ev:%d %d %d\n", type, par1, par2);
//fflush(stdout);
printf("ev:%d %d %d\n", type, par1, par2);
fflush(stdout);
// general settings in only possible in forked process
if (type == EVT_INIT) {
SetPanelType(PANEL_DISABLED);
}

if (type == EVT_POINTERDOWN) {
is_in_touch = 1;
genEmuEvent(inputfds[0], EV_ABS, ABS_MT_TRACKING_ID, 0);
Expand All @@ -102,6 +107,8 @@ int pb_event_handler(int type, int par1, int par2) {
} else if (type == EVT_POINTERUP) {
is_in_touch = 0;
genEmuEvent(inputfds[0], EV_ABS, ABS_MT_TRACKING_ID, -1);
} else {
genEmuEvent(inputfds[0], type, par1, par2);
}
return 0;
}
Expand Down

0 comments on commit 64ed78a

Please sign in to comment.