Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_fb
Modified Files:
Tag: SPLIT
Makefile.am ecore_fb.c
Log Message:
bee testing as cross-compile target for my ipaq... it works... well after
these minor patches... :) i have to use a script to cross-compile as using
configure/make/libtool just doesnt work. i'm refining the script. will come
later.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_fb/Attic/Makefile.am,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -3 -r1.1.2.1 -r1.1.2.2
--- Makefile.am 11 Feb 2003 06:27:09 -0000 1.1.2.1
+++ Makefile.am 15 Feb 2003 14:54:28 -0000 1.1.2.2
@@ -15,7 +15,7 @@
ecore_fb.c \
ecore_fb_private.h
-libecore_fb_la_LIBADD = $(LDFLAGS) \
+libecore_fb_la_LIBADD = \
$(top_builddir)/src/lib/ecore/libecore.la
libecore_fb_la_DEPENDENCIES = \
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_fb/Attic/ecore_fb.c,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -3 -r1.1.2.3 -r1.1.2.4
--- ecore_fb.c 12 Feb 2003 05:06:25 -0000 1.1.2.3
+++ ecore_fb.c 15 Feb 2003 14:54:28 -0000 1.1.2.4
@@ -199,6 +199,122 @@
"0x7f"
};
+static char *_ecore_fb_btn_syms[128] =
+{
+ "0x00",
+ "Escape",
+ "F1",
+ "F2",
+ "F3",
+ "F4",
+ "Up",
+ "Right",
+ "Left",
+ "Down",
+ "Return",
+ "0x1b",
+ "0x1c",
+ "0x1d",
+ "0x1e",
+ "0x1f",
+ "0x20",
+ "0x21",
+ "0x22",
+ "0x23",
+ "0x24",
+ "0x25",
+ "0x26",
+ "0x27",
+ "0x28",
+ "0x29",
+ "0x2a",
+ "0x2b",
+ "0x2c",
+ "0x2d",
+ "0x2e",
+ "0x2f",
+ "0x30",
+ "0x31",
+ "0x32",
+ "0x33",
+ "0x34",
+ "0x35",
+ "0x36",
+ "0x37",
+ "0x38",
+ "0x39",
+ "0x3a",
+ "0x3b",
+ "0x3c",
+ "0x3d",
+ "0x3e",
+ "0x3f",
+ "0x40",
+ "0x41",
+ "0x42",
+ "0x43",
+ "0x44",
+ "0x45",
+ "0x46",
+ "0x47",
+ "0x48",
+ "0x49",
+ "0x4a",
+ "0x4b",
+ "0x4c",
+ "0x4d",
+ "0x4e",
+ "0x4f",
+ "0x50",
+ "0x51",
+ "0x52",
+ "0x53",
+ "0x54",
+ "0x55",
+ "0x56",
+ "0x57",
+ "0x58",
+ "0x59",
+ "0x5a",
+ "0x5b",
+ "0x5c",
+ "0x5d",
+ "0x5e",
+ "0x5f",
+ "0x60",
+ "0x61",
+ "0x62",
+ "0x63",
+ "0x64",
+ "0x65",
+ "0x66",
+ "0x67",
+ "0x68",
+ "0x69",
+ "0x6a",
+ "0x6b",
+ "0x6c",
+ "0x6d",
+ "0x6e",
+ "0x6f",
+ "0x70",
+ "0x71",
+ "0x72",
+ "0x73",
+ "0x74",
+ "0x75",
+ "0x76",
+ "0x77",
+ "0x78",
+ "0x79",
+ "0x7a",
+ "0x7b",
+ "0x7c",
+ "0x7d",
+ "0x7e",
+ "0x7f"
+};
+
int
ecore_fb_init(const char *name)
{
@@ -206,7 +322,7 @@
_ecore_fb_init_count++;
if (_ecore_fb_init_count > 1) return _ecore_fb_init_count;
-
+
_ecore_fb_ts_fd = open("/dev/touchscreen/0", O_RDONLY);
if (_ecore_fb_ts_fd >= 0)
{
@@ -378,7 +494,7 @@
struct fb_var_screeninfo fb_var;
int fb;
- fb = open("/dev/fb", O_RDWR);
+ fb = open("/dev/fb0", O_RDWR);
if (fb < 0)
{
if (w) *w = 0;
@@ -506,7 +622,10 @@
e = calloc(1, sizeof(Ecore_Fb_Event_Key_Down));
if (!e) goto retry;
- e->keyname = strdup(_ecore_fb_kbd_syms[buf & 0x7f]);
+ if (_ecore_fb_kbd_fd != _ecore_fb_tty_fd)
+ e->keyname = strdup(_ecore_fb_kbd_syms[buf & 0x7f]);
+ else
+ e->keyname = strdup(_ecore_fb_btn_syms[buf & 0x7f]);
if (!e->keyname)
{
free(e);
@@ -521,7 +640,10 @@
e = calloc(1, sizeof(Ecore_Fb_Event_Key_Up));
if (!e) goto retry;
- e->keyname = strdup(_ecore_fb_kbd_syms[buf & 0x7f]);
+ if (_ecore_fb_kbd_fd != _ecore_fb_tty_fd)
+ e->keyname = strdup(_ecore_fb_kbd_syms[buf & 0x7f]);
+ else
+ e->keyname = strdup(_ecore_fb_btn_syms[buf & 0x7f]);
if (!e->keyname)
{
free(e);
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs