aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ecore/src/lib/ecore_psl1ght
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/ecore/src/lib/ecore_psl1ght')
-rw-r--r--libraries/ecore/src/lib/ecore_psl1ght/Ecore_Psl1ght.h121
-rw-r--r--libraries/ecore/src/lib/ecore_psl1ght/Ecore_Psl1ght_Keys.h78
-rw-r--r--libraries/ecore/src/lib/ecore_psl1ght/Makefile.am30
-rw-r--r--libraries/ecore/src/lib/ecore_psl1ght/Makefile.in840
-rw-r--r--libraries/ecore/src/lib/ecore_psl1ght/ecore_psl1ght.c859
-rw-r--r--libraries/ecore/src/lib/ecore_psl1ght/ecore_psl1ght_private.h36
-rw-r--r--libraries/ecore/src/lib/ecore_psl1ght/moveutil.c245
-rw-r--r--libraries/ecore/src/lib/ecore_psl1ght/spursutil.c62
8 files changed, 0 insertions, 2271 deletions
diff --git a/libraries/ecore/src/lib/ecore_psl1ght/Ecore_Psl1ght.h b/libraries/ecore/src/lib/ecore_psl1ght/Ecore_Psl1ght.h
deleted file mode 100644
index c6300fd..0000000
--- a/libraries/ecore/src/lib/ecore_psl1ght/Ecore_Psl1ght.h
+++ /dev/null
@@ -1,121 +0,0 @@
1#ifndef _ECORE_PSL1GHT_H
2#define _ECORE_PSL1GHT_H
3
4#ifdef EAPI
5# undef EAPI
6#endif
7
8#ifdef __GNUC__
9# if __GNUC__ >= 4
10# define EAPI __attribute__ ((visibility("default")))
11# else
12# define EAPI
13# endif
14#else
15# define EAPI
16#endif
17
18/**
19 * @file
20 * @brief Ecore PSL1GHT system functions.
21 */
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27EAPI extern int ECORE_PSL1GHT_EVENT_KEY_MODIFIERS;
28EAPI extern int ECORE_PSL1GHT_EVENT_GOT_FOCUS;
29EAPI extern int ECORE_PSL1GHT_EVENT_LOST_FOCUS;
30EAPI extern int ECORE_PSL1GHT_EVENT_EXPOSE;
31EAPI extern int ECORE_PSL1GHT_EVENT_QUIT;
32
33typedef struct _Ecore_Psl1ght_Event_Key_Modifiers Ecore_Psl1ght_Event_Key_Modifiers;
34struct _Ecore_Psl1ght_Event_Key_Modifiers /** PSL1GHT Key Modifier event */
35{
36 unsigned int timestamp;
37 unsigned int modifiers;
38 int shift_changed : 1;
39 int shift : 1;
40 int alt_changed : 1;
41 int alt : 1;
42 int ctrl_changed : 1;
43 int ctrl : 1;
44 int win_changed : 1;
45 int win : 1;
46 int num_lock_changed : 1;
47 int num_lock : 1;
48 int caps_lock_changed : 1;
49 int caps_lock : 1;
50 int scroll_lock_changed : 1;
51 int scroll_lock : 1;
52};
53
54typedef struct _Ecore_Psl1ght_Event_Key_Down Ecore_Psl1ght_Event_Key_Down;
55struct _Ecore_Psl1ght_Event_Key_Down /** PSL1GHT Key Down event */
56{
57 const char *keyname; /**< The name of the key that was pressed */
58 const char *keycompose; /**< The UTF-8 string conversion if any */
59 unsigned int time;
60};
61
62typedef struct _Ecore_Psl1ght_Event_Key_Up Ecore_Psl1ght_Event_Key_Up;
63struct _Ecore_Psl1ght_Event_Key_Up /** PSL1GHT Key Up event */
64{
65 const char *keyname; /**< The name of the key that was released */
66 const char *keycompose; /**< The UTF-8 string conversion if any */
67 unsigned int time;
68};
69
70typedef struct _Ecore_Psl1ght_Event_Mouse_Button_Down Ecore_Psl1ght_Event_Mouse_Button_Down;
71struct _Ecore_Psl1ght_Event_Mouse_Button_Down /** PSL1GHT Mouse Down event */
72{
73 int button; /**< Mouse button that was pressed (1 - 32) */
74 int x; /**< Mouse co-ordinates when mouse button was pressed */
75 int y; /**< Mouse co-ordinates when mouse button was pressed */
76 int double_click : 1; /**< Set if click was a double click */
77 int triple_click : 1; /**< Set if click was a triple click */
78 unsigned int time;
79};
80
81typedef struct _Ecore_Psl1ght_Event_Mouse_Button_Up Ecore_Psl1ght_Event_Mouse_Button_Up;
82struct _Ecore_Psl1ght_Event_Mouse_Button_Up /** PSL1GHT Mouse Up event */
83{
84 int button; /**< Mouse button that was released (1 - 32) */
85 int x; /**< Mouse co-ordinates when mouse button was raised */
86 int y; /**< Mouse co-ordinates when mouse button was raised */
87 int double_click : 1; /**< Set if click was a double click */
88 int triple_click : 1; /**< Set if click was a triple click */
89 unsigned int time;
90};
91
92typedef struct _Ecore_Psl1ght_Event_Mouse_Move Ecore_Psl1ght_Event_Mouse_Move;
93struct _Ecore_Psl1ght_Event_Mouse_Move /** PSL1GHT Mouse Move event */
94{
95 int x; /**< Mouse co-ordinates where the mouse cursor moved to */
96 int y; /**< Mouse co-ordinates where the mouse cursor moved to */
97 unsigned int time;
98};
99
100typedef struct _Ecore_Psl1ght_Event_Mouse_Wheel Ecore_Psl1ght_Event_Mouse_Wheel;
101struct _Ecore_Psl1ght_Event_Mouse_Wheel /** PSL1GHT Mouse Wheel event */
102{
103 int x, y;
104 int direction; /* 0 = vertical, 1 = horizontal */
105 int wheel; /* value 1 (left/up), -1 (right/down) */
106 unsigned int time;
107};
108
109EAPI int ecore_psl1ght_init(const char *name);
110EAPI int ecore_psl1ght_shutdown(void);
111EAPI void ecore_psl1ght_resolution_set(int width, int height);
112EAPI void ecore_psl1ght_poll_events(void);
113
114EAPI void ecore_psl1ght_screen_resolution_get(int *w, int *h);
115EAPI void ecore_psl1ght_optimal_screen_resolution_get(int *w, int *h);
116
117#ifdef __cplusplus
118}
119#endif
120
121#endif
diff --git a/libraries/ecore/src/lib/ecore_psl1ght/Ecore_Psl1ght_Keys.h b/libraries/ecore/src/lib/ecore_psl1ght/Ecore_Psl1ght_Keys.h
deleted file mode 100644
index e385af8..0000000
--- a/libraries/ecore/src/lib/ecore_psl1ght/Ecore_Psl1ght_Keys.h
+++ /dev/null
@@ -1,78 +0,0 @@
1#ifndef ECORE_PSL1GHT_KEYS_H__
2# define ECORE_PSL1GHT_KEYS_H__
3
4struct _ecore_psl1ght_keys_s
5{
6 int code;
7 const char *name;
8 const char *compose;
9};
10
11static const struct _ecore_psl1ght_keys_s keystable[] =
12{
13 { KB_RAWKEY_NO_EVENT, "0x00", "" },
14 { KB_RAWKEY_BS, "BackSpace", "\010" },
15 { KB_RAWKEY_TAB, "Tab", "\011" },
16 { KB_RAWKEY_ENTER, "Return", "\015" },
17 { KB_RAWKEY_PAUSE, "Pause", "Pause" },
18 { KB_RAWKEY_ESCAPE, "Escape", "\033" },
19 { KB_RAWKEY_SPACE, "space", " " },
20
21 /* Skip uppercase letters */
22 { KB_RAWKEY_LEFT_BRACKET_101, "bracketleft", "[" },
23 { KB_RAWKEY_BACKSLASH_101, "backslash", "\\" },
24 { KB_RAWKEY_RIGHT_BRACKET_101, "bracketright", "]" },
25 { KB_RAWKEY_ACCENT_CIRCONFLEX_106, "asciicircumm", "^" },
26 { KB_RAWKEY_DELETE, "Delete", "\177" },
27 /* End of ASCII mapped keysyms */
28
29 /* Numeric keypad */
30 { KB_RAWKEY_KPAD_0, "KP0", "0" },
31 { KB_RAWKEY_KPAD_1, "KP1", "1" },
32 { KB_RAWKEY_KPAD_2, "KP2", "2" },
33 { KB_RAWKEY_KPAD_3, "KP3", "3" },
34 { KB_RAWKEY_KPAD_4, "KP4", "4" },
35 { KB_RAWKEY_KPAD_5, "KP5", "5" },
36 { KB_RAWKEY_KPAD_6, "KP6", "6" },
37 { KB_RAWKEY_KPAD_7, "KP7", "7" },
38 { KB_RAWKEY_KPAD_8, "KP8", "8" },
39 { KB_RAWKEY_KPAD_9, "KP9", "9" },
40 { KB_RAWKEY_KPAD_PERIOD, "period", "." },
41 { KB_RAWKEY_KPAD_SLASH, "KP_Divide", "/" },
42 { KB_RAWKEY_KPAD_ASTERISK, "KP_Multiply", "*" },
43 { KB_RAWKEY_KPAD_MINUS, "KP_Minus", "-" },
44 { KB_RAWKEY_KPAD_PLUS, "KP_Plus", "+" },
45 { KB_RAWKEY_KPAD_ENTER, "KP_Enter", "\015" },
46
47 /* Arrows + Home/End pad */
48 { KB_RAWKEY_UP_ARROW, "Up", "Up" },
49 { KB_RAWKEY_DOWN_ARROW, "Down", "Down" },
50 { KB_RAWKEY_RIGHT_ARROW, "Right", "Right" },
51 { KB_RAWKEY_LEFT_ARROW, "Left", "Left" },
52 { KB_RAWKEY_INSERT, "Insert", "Insert" },
53 { KB_RAWKEY_HOME, "Home", "Home" },
54 { KB_RAWKEY_END, "End", "End" },
55 { KB_RAWKEY_PAGE_UP, "Page_Up", "Page_Up" },
56 { KB_RAWKEY_PAGE_DOWN, "Page_Down", "Page_Down" },
57
58 /* Function keys */
59 { KB_RAWKEY_F1, "F1", "F1" },
60 { KB_RAWKEY_F2, "F2", "F2" },
61 { KB_RAWKEY_F3, "F3", "F3" },
62 { KB_RAWKEY_F4, "F4", "F4" },
63 { KB_RAWKEY_F5, "F5", "F5" },
64 { KB_RAWKEY_F6, "F6", "F6" },
65 { KB_RAWKEY_F7, "F7", "F7" },
66 { KB_RAWKEY_F8, "F8", "F8" },
67 { KB_RAWKEY_F9, "F9", "F9" },
68 { KB_RAWKEY_F10, "F10", "F10" },
69 { KB_RAWKEY_F11, "F11", "F11" },
70 { KB_RAWKEY_F12, "F12", "F12" },
71
72 /* Key state modifier keys */
73 { KB_RAWKEY_KPAD_NUMLOCK, "Num_Lock", "Num_Lock" },
74 { KB_RAWKEY_CAPS_LOCK, "Caps_Lock", "Caps_Lock" },
75 { KB_RAWKEY_SCROLL_LOCK, "Scroll_Lock", "Scroll_Lock" },
76};
77
78#endif /* ECORE_PSL1GHT_KEYS_H__ */
diff --git a/libraries/ecore/src/lib/ecore_psl1ght/Makefile.am b/libraries/ecore/src/lib/ecore_psl1ght/Makefile.am
deleted file mode 100644
index 8e7328a..0000000
--- a/libraries/ecore/src/lib/ecore_psl1ght/Makefile.am
+++ /dev/null
@@ -1,30 +0,0 @@
1MAINTAINERCLEANFILES = Makefile.in
2
3AM_CPPFLAGS = \
4-I$(top_srcdir)/src/lib/ecore \
5-I$(top_srcdir)/src/lib/ecore_evas \
6-I$(top_srcdir)/src/lib/ecore_input \
7-I$(top_builddir)/src/lib/ecore \
8-I$(top_builddir)/src/lib/ecore_evas \
9-I$(top_builddir)/src/lib/ecore_input \
10@EFL_ECORE_PSL1GHT_BUILD@ \
11@EVAS_CFLAGS@ \
12@EINA_CFLAGS@
13
14lib_LTLIBRARIES = libecore_psl1ght.la
15includes_HEADERS = Ecore_Psl1ght.h
16includesdir = $(includedir)/ecore-@VMAJ@
17
18libecore_psl1ght_la_SOURCES = \
19ecore_psl1ght.c \
20moveutil.c \
21spursutil.c
22
23libecore_psl1ght_la_LIBADD = \
24$(top_builddir)/src/lib/ecore/libecore.la \
25$(top_builddir)/src/lib/ecore_input/libecore_input.la \
26@EINA_LIBS@
27
28libecore_psl1ght_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -version-info @version_info@ @release_info@
29
30EXTRA_DIST = Ecore_Psl1ght_Keys.h ecore_psl1ght_private.h
diff --git a/libraries/ecore/src/lib/ecore_psl1ght/Makefile.in b/libraries/ecore/src/lib/ecore_psl1ght/Makefile.in
deleted file mode 100644
index 54a0435..0000000
--- a/libraries/ecore/src/lib/ecore_psl1ght/Makefile.in
+++ /dev/null
@@ -1,840 +0,0 @@
1# Makefile.in generated by automake 1.11.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
6# Inc.
7# This Makefile.in is free software; the Free Software Foundation
8# gives unlimited permission to copy and/or distribute it,
9# with or without modifications, as long as this notice is preserved.
10
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14# PARTICULAR PURPOSE.
15
16@SET_MAKE@
17
18
19VPATH = @srcdir@
20pkgdatadir = $(datadir)/@PACKAGE@
21pkgincludedir = $(includedir)/@PACKAGE@
22pkglibdir = $(libdir)/@PACKAGE@
23pkglibexecdir = $(libexecdir)/@PACKAGE@
24am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
25install_sh_DATA = $(install_sh) -c -m 644
26install_sh_PROGRAM = $(install_sh) -c
27install_sh_SCRIPT = $(install_sh) -c
28INSTALL_HEADER = $(INSTALL_DATA)
29transform = $(program_transform_name)
30NORMAL_INSTALL = :
31PRE_INSTALL = :
32POST_INSTALL = :
33NORMAL_UNINSTALL = :
34PRE_UNINSTALL = :
35POST_UNINSTALL = :
36build_triplet = @build@
37host_triplet = @host@
38subdir = src/lib/ecore_psl1ght
39DIST_COMMON = $(includes_HEADERS) $(srcdir)/Makefile.am \
40 $(srcdir)/Makefile.in
41ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
42am__aclocal_m4_deps = $(top_srcdir)/m4/ac_attribute.m4 \
43 $(top_srcdir)/m4/ac_path_generic.m4 \
44 $(top_srcdir)/m4/check_x_extension.m4 \
45 $(top_srcdir)/m4/ecore_check_module.m4 \
46 $(top_srcdir)/m4/ecore_check_options.m4 \
47 $(top_srcdir)/m4/efl_compiler_flag.m4 \
48 $(top_srcdir)/m4/efl_doxygen.m4 \
49 $(top_srcdir)/m4/efl_examples.m4 \
50 $(top_srcdir)/m4/efl_path_max.m4 $(top_srcdir)/m4/efl_tests.m4 \
51 $(top_srcdir)/m4/efl_threads.m4 $(top_srcdir)/m4/gettext.m4 \
52 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
53 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
54 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
55 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
56 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
57 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
58 $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac
59am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
60 $(ACLOCAL_M4)
61mkinstalldirs = $(install_sh) -d
62CONFIG_HEADER = $(top_builddir)/config.h
63CONFIG_CLEAN_FILES =
64CONFIG_CLEAN_VPATH_FILES =
65am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
66am__vpath_adj = case $$p in \
67 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
68 *) f=$$p;; \
69 esac;
70am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
71am__install_max = 40
72am__nobase_strip_setup = \
73 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
74am__nobase_strip = \
75 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
76am__nobase_list = $(am__nobase_strip_setup); \
77 for p in $$list; do echo "$$p $$p"; done | \
78 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
79 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
80 if (++n[$$2] == $(am__install_max)) \
81 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
82 END { for (dir in files) print dir, files[dir] }'
83am__base_list = \
84 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
85 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
86am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includesdir)"
87LTLIBRARIES = $(lib_LTLIBRARIES)
88libecore_psl1ght_la_DEPENDENCIES = \
89 $(top_builddir)/src/lib/ecore/libecore.la \
90 $(top_builddir)/src/lib/ecore_input/libecore_input.la
91am_libecore_psl1ght_la_OBJECTS = ecore_psl1ght.lo moveutil.lo \
92 spursutil.lo
93libecore_psl1ght_la_OBJECTS = $(am_libecore_psl1ght_la_OBJECTS)
94AM_V_lt = $(am__v_lt_$(V))
95am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
96am__v_lt_0 = --silent
97libecore_psl1ght_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
98 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
99 $(AM_CFLAGS) $(CFLAGS) $(libecore_psl1ght_la_LDFLAGS) \
100 $(LDFLAGS) -o $@
101DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
102depcomp = $(SHELL) $(top_srcdir)/depcomp
103am__depfiles_maybe = depfiles
104am__mv = mv -f
105COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
106 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
107LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
108 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
109 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
110 $(AM_CFLAGS) $(CFLAGS)
111AM_V_CC = $(am__v_CC_$(V))
112am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
113am__v_CC_0 = @echo " CC " $@;
114AM_V_at = $(am__v_at_$(V))
115am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
116am__v_at_0 = @
117CCLD = $(CC)
118LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
119 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
120 $(AM_LDFLAGS) $(LDFLAGS) -o $@
121AM_V_CCLD = $(am__v_CCLD_$(V))
122am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
123am__v_CCLD_0 = @echo " CCLD " $@;
124AM_V_GEN = $(am__v_GEN_$(V))
125am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
126am__v_GEN_0 = @echo " GEN " $@;
127SOURCES = $(libecore_psl1ght_la_SOURCES)
128DIST_SOURCES = $(libecore_psl1ght_la_SOURCES)
129HEADERS = $(includes_HEADERS)
130ETAGS = etags
131CTAGS = ctags
132DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
133ACLOCAL = @ACLOCAL@
134ALLOCA = @ALLOCA@
135AMTAR = @AMTAR@
136AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
137AR = @AR@
138AS = @AS@
139AUTOCONF = @AUTOCONF@
140AUTOHEADER = @AUTOHEADER@
141AUTOMAKE = @AUTOMAKE@
142AWK = @AWK@
143CARES_CFLAGS = @CARES_CFLAGS@
144CARES_LIBS = @CARES_LIBS@
145CC = @CC@
146CCDEPMODE = @CCDEPMODE@
147CFLAGS = @CFLAGS@
148CHECK_CFLAGS = @CHECK_CFLAGS@
149CHECK_LIBS = @CHECK_LIBS@
150CPP = @CPP@
151CPPFLAGS = @CPPFLAGS@
152CURL_CFLAGS = @CURL_CFLAGS@
153CURL_LIBS = @CURL_LIBS@
154CXX = @CXX@
155CXXCPP = @CXXCPP@
156CXXDEPMODE = @CXXDEPMODE@
157CXXFLAGS = @CXXFLAGS@
158CYGPATH_W = @CYGPATH_W@
159DEFS = @DEFS@
160DEPDIR = @DEPDIR@
161DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@
162DIRECTFB_LIBS = @DIRECTFB_LIBS@
163DLLTOOL = @DLLTOOL@
164DSYMUTIL = @DSYMUTIL@
165DUMPBIN = @DUMPBIN@
166ECHO_C = @ECHO_C@
167ECHO_N = @ECHO_N@
168ECHO_T = @ECHO_T@
169ECORE_XCB_CFLAGS = @ECORE_XCB_CFLAGS@
170ECORE_XCB_LIBS = @ECORE_XCB_LIBS@
171EFL_ECORE_BUILD = @EFL_ECORE_BUILD@
172EFL_ECORE_CON_BUILD = @EFL_ECORE_CON_BUILD@
173EFL_ECORE_EVAS_BUILD = @EFL_ECORE_EVAS_BUILD@
174EFL_ECORE_FILE_BUILD = @EFL_ECORE_FILE_BUILD@
175EFL_ECORE_IMF_BUILD = @EFL_ECORE_IMF_BUILD@
176EFL_ECORE_IMF_EVAS_BUILD = @EFL_ECORE_IMF_EVAS_BUILD@
177EFL_ECORE_INPUT_BUILD = @EFL_ECORE_INPUT_BUILD@
178EFL_ECORE_INPUT_EVAS_BUILD = @EFL_ECORE_INPUT_EVAS_BUILD@
179EFL_ECORE_IPC_BUILD = @EFL_ECORE_IPC_BUILD@
180EFL_ECORE_PSL1GHT_BUILD = @EFL_ECORE_PSL1GHT_BUILD@
181EFL_ECORE_SDL_BUILD = @EFL_ECORE_SDL_BUILD@
182EFL_ECORE_WIN32_BUILD = @EFL_ECORE_WIN32_BUILD@
183EFL_ECORE_WINCE_BUILD = @EFL_ECORE_WINCE_BUILD@
184EFL_PTHREAD_CFLAGS = @EFL_PTHREAD_CFLAGS@
185EFL_PTHREAD_LIBS = @EFL_PTHREAD_LIBS@
186EGREP = @EGREP@
187EINA_CFLAGS = @EINA_CFLAGS@
188EINA_LIBS = @EINA_LIBS@
189ESCAPE_CFLAGS = @ESCAPE_CFLAGS@
190ESCAPE_LIBS = @ESCAPE_LIBS@
191EVAS_CFLAGS = @EVAS_CFLAGS@
192EVAS_LIBS = @EVAS_LIBS@
193EVIL_CFLAGS = @EVIL_CFLAGS@
194EVIL_LIBS = @EVIL_LIBS@
195EXEEXT = @EXEEXT@
196EXOTIC_CFLAGS = @EXOTIC_CFLAGS@
197EXOTIC_LIBS = @EXOTIC_LIBS@
198FGREP = @FGREP@
199GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
200GLIB_CFLAGS = @GLIB_CFLAGS@
201GLIB_LIBS = @GLIB_LIBS@
202GMSGFMT = @GMSGFMT@
203GMSGFMT_015 = @GMSGFMT_015@
204GREP = @GREP@
205INSTALL = @INSTALL@
206INSTALL_DATA = @INSTALL_DATA@
207INSTALL_PROGRAM = @INSTALL_PROGRAM@
208INSTALL_SCRIPT = @INSTALL_SCRIPT@
209INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
210INTLLIBS = @INTLLIBS@
211INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
212KEYSYMDEFS = @KEYSYMDEFS@
213LD = @LD@
214LDFLAGS = @LDFLAGS@
215LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@
216LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@
217LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@
218LIBICONV = @LIBICONV@
219LIBINTL = @LIBINTL@
220LIBOBJS = @LIBOBJS@
221LIBS = @LIBS@
222LIBTOOL = @LIBTOOL@
223LIPO = @LIPO@
224LN_S = @LN_S@
225LTLIBICONV = @LTLIBICONV@
226LTLIBINTL = @LTLIBINTL@
227LTLIBOBJS = @LTLIBOBJS@
228MAKEINFO = @MAKEINFO@
229MKDIR_P = @MKDIR_P@
230MSGFMT = @MSGFMT@
231MSGFMT_015 = @MSGFMT_015@
232MSGMERGE = @MSGMERGE@
233NM = @NM@
234NMEDIT = @NMEDIT@
235OBJC = @OBJC@
236OBJCDEPMODE = @OBJCDEPMODE@
237OBJCFLAGS = @OBJCFLAGS@
238OBJDUMP = @OBJDUMP@
239OBJEXT = @OBJEXT@
240OTOOL = @OTOOL@
241OTOOL64 = @OTOOL64@
242PACKAGE = @PACKAGE@
243PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
244PACKAGE_NAME = @PACKAGE_NAME@
245PACKAGE_STRING = @PACKAGE_STRING@
246PACKAGE_TARNAME = @PACKAGE_TARNAME@
247PACKAGE_URL = @PACKAGE_URL@
248PACKAGE_VERSION = @PACKAGE_VERSION@
249PATH_SEPARATOR = @PATH_SEPARATOR@
250PIXMAN_CFLAGS = @PIXMAN_CFLAGS@
251PIXMAN_LIBS = @PIXMAN_LIBS@
252PKG_CONFIG = @PKG_CONFIG@
253PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
254PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
255POSUB = @POSUB@
256RANLIB = @RANLIB@
257SCIM_CFLAGS = @SCIM_CFLAGS@
258SCIM_LIBS = @SCIM_LIBS@
259SDL_CFLAGS = @SDL_CFLAGS@
260SDL_CONFIG = @SDL_CONFIG@
261SDL_LIBS = @SDL_LIBS@
262SED = @SED@
263SET_MAKE = @SET_MAKE@
264SHELL = @SHELL@
265SHM_OPEN_LIBS = @SHM_OPEN_LIBS@
266SSL_CFLAGS = @SSL_CFLAGS@
267SSL_LIBS = @SSL_LIBS@
268STRIP = @STRIP@
269TLS2_CFLAGS = @TLS2_CFLAGS@
270TLS2_LIBS = @TLS2_LIBS@
271TLS_CFLAGS = @TLS_CFLAGS@
272TLS_LIBS = @TLS_LIBS@
273TSLIB_CFLAGS = @TSLIB_CFLAGS@
274TSLIB_LIBS = @TSLIB_LIBS@
275USE_NLS = @USE_NLS@
276VERSION = @VERSION@
277VMAJ = @VMAJ@
278WAYLAND_CFLAGS = @WAYLAND_CFLAGS@
279WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@
280WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@
281WAYLAND_LIBS = @WAYLAND_LIBS@
282WIN32_CFLAGS = @WIN32_CFLAGS@
283WIN32_CPPFLAGS = @WIN32_CPPFLAGS@
284WIN32_LIBS = @WIN32_LIBS@
285XCB_COMPOSITE_CFLAGS = @XCB_COMPOSITE_CFLAGS@
286XCB_COMPOSITE_LIBS = @XCB_COMPOSITE_LIBS@
287XCB_CURSOR_CFLAGS = @XCB_CURSOR_CFLAGS@
288XCB_CURSOR_LIBS = @XCB_CURSOR_LIBS@
289XCB_DAMAGE_CFLAGS = @XCB_DAMAGE_CFLAGS@
290XCB_DAMAGE_LIBS = @XCB_DAMAGE_LIBS@
291XCB_DPMS_CFLAGS = @XCB_DPMS_CFLAGS@
292XCB_DPMS_LIBS = @XCB_DPMS_LIBS@
293XCB_RANDR_CFLAGS = @XCB_RANDR_CFLAGS@
294XCB_RANDR_LIBS = @XCB_RANDR_LIBS@
295XCB_RENDER_CFLAGS = @XCB_RENDER_CFLAGS@
296XCB_RENDER_LIBS = @XCB_RENDER_LIBS@
297XCB_SCREENSAVER_CFLAGS = @XCB_SCREENSAVER_CFLAGS@
298XCB_SCREENSAVER_LIBS = @XCB_SCREENSAVER_LIBS@
299XCB_SHAPE_CFLAGS = @XCB_SHAPE_CFLAGS@
300XCB_SHAPE_LIBS = @XCB_SHAPE_LIBS@
301XCB_SYNC_CFLAGS = @XCB_SYNC_CFLAGS@
302XCB_SYNC_LIBS = @XCB_SYNC_LIBS@
303XCB_X11_CFLAGS = @XCB_X11_CFLAGS@
304XCB_X11_LIBS = @XCB_X11_LIBS@
305XCB_XFIXES_CFLAGS = @XCB_XFIXES_CFLAGS@
306XCB_XFIXES_LIBS = @XCB_XFIXES_LIBS@
307XCB_XGESTURE_CFLAGS = @XCB_XGESTURE_CFLAGS@
308XCB_XGESTURE_LIBS = @XCB_XGESTURE_LIBS@
309XCB_XINERAMA_CFLAGS = @XCB_XINERAMA_CFLAGS@
310XCB_XINERAMA_LIBS = @XCB_XINERAMA_LIBS@
311XCB_XINPUT_CFLAGS = @XCB_XINPUT_CFLAGS@
312XCB_XINPUT_LIBS = @XCB_XINPUT_LIBS@
313XCB_XPRINT_CFLAGS = @XCB_XPRINT_CFLAGS@
314XCB_XPRINT_LIBS = @XCB_XPRINT_LIBS@
315XCB_XTEST_CFLAGS = @XCB_XTEST_CFLAGS@
316XCB_XTEST_LIBS = @XCB_XTEST_LIBS@
317XCOMPOSITE_CFLAGS = @XCOMPOSITE_CFLAGS@
318XCOMPOSITE_LIBS = @XCOMPOSITE_LIBS@
319XDAMAGE_CFLAGS = @XDAMAGE_CFLAGS@
320XDAMAGE_LIBS = @XDAMAGE_LIBS@
321XDPMS_CFLAGS = @XDPMS_CFLAGS@
322XDPMS_LIBS = @XDPMS_LIBS@
323XFIXES_CFLAGS = @XFIXES_CFLAGS@
324XFIXES_LIBS = @XFIXES_LIBS@
325XGESTURE_CFLAGS = @XGESTURE_CFLAGS@
326XGESTURE_LIBS = @XGESTURE_LIBS@
327XGETTEXT = @XGETTEXT@
328XGETTEXT_015 = @XGETTEXT_015@
329XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
330XI2_CFLAGS = @XI2_CFLAGS@
331XI2_LIBS = @XI2_LIBS@
332XINERAMA_CFLAGS = @XINERAMA_CFLAGS@
333XINERAMA_LIBS = @XINERAMA_LIBS@
334XKB_CFLAGS = @XKB_CFLAGS@
335XKB_LIBS = @XKB_LIBS@
336XMKMF = @XMKMF@
337XPRINT_CFLAGS = @XPRINT_CFLAGS@
338XPRINT_LIBS = @XPRINT_LIBS@
339XRANDR_CFLAGS = @XRANDR_CFLAGS@
340XRANDR_LIBS = @XRANDR_LIBS@
341XRENDER_CFLAGS = @XRENDER_CFLAGS@
342XRENDER_LIBS = @XRENDER_LIBS@
343XSS_CFLAGS = @XSS_CFLAGS@
344XSS_LIBS = @XSS_LIBS@
345XTEST_CFLAGS = @XTEST_CFLAGS@
346XTEST_LIBS = @XTEST_LIBS@
347X_CFLAGS = @X_CFLAGS@
348X_EXTRA_LIBS = @X_EXTRA_LIBS@
349X_LIBS = @X_LIBS@
350X_PRE_LIBS = @X_PRE_LIBS@
351Xcursor_cflags = @Xcursor_cflags@
352Xcursor_libs = @Xcursor_libs@
353abs_builddir = @abs_builddir@
354abs_srcdir = @abs_srcdir@
355abs_top_builddir = @abs_top_builddir@
356abs_top_srcdir = @abs_top_srcdir@
357ac_ct_CC = @ac_ct_CC@
358ac_ct_CXX = @ac_ct_CXX@
359ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
360ac_ct_OBJC = @ac_ct_OBJC@
361am__include = @am__include@
362am__leading_dot = @am__leading_dot@
363am__quote = @am__quote@
364am__tar = @am__tar@
365am__untar = @am__untar@
366bindir = @bindir@
367build = @build@
368build_alias = @build_alias@
369build_cpu = @build_cpu@
370build_os = @build_os@
371build_vendor = @build_vendor@
372builddir = @builddir@
373cocoa_ldflags = @cocoa_ldflags@
374datadir = @datadir@
375datarootdir = @datarootdir@
376dlopen_libs = @dlopen_libs@
377docdir = @docdir@
378dvidir = @dvidir@
379ecore_cocoa_cflags = @ecore_cocoa_cflags@
380ecore_cocoa_libs = @ecore_cocoa_libs@
381ecore_con_cflags = @ecore_con_cflags@
382ecore_con_libs = @ecore_con_libs@
383ecore_directfb_cflags = @ecore_directfb_cflags@
384ecore_directfb_libs = @ecore_directfb_libs@
385ecore_evas_cflags = @ecore_evas_cflags@
386ecore_evas_libs = @ecore_evas_libs@
387ecore_fb_cflags = @ecore_fb_cflags@
388ecore_fb_libs = @ecore_fb_libs@
389ecore_file_cflags = @ecore_file_cflags@
390ecore_file_libs = @ecore_file_libs@
391ecore_imf_cflags = @ecore_imf_cflags@
392ecore_imf_evas_cflags = @ecore_imf_evas_cflags@
393ecore_imf_evas_libs = @ecore_imf_evas_libs@
394ecore_imf_libs = @ecore_imf_libs@
395ecore_imf_scim_cflags = @ecore_imf_scim_cflags@
396ecore_imf_scim_libs = @ecore_imf_scim_libs@
397ecore_imf_xim_cflags = @ecore_imf_xim_cflags@
398ecore_imf_xim_libs = @ecore_imf_xim_libs@
399ecore_input_cflags = @ecore_input_cflags@
400ecore_input_evas_cflags = @ecore_input_evas_cflags@
401ecore_input_evas_libs = @ecore_input_evas_libs@
402ecore_input_libs = @ecore_input_libs@
403ecore_ipc_cflags = @ecore_ipc_cflags@
404ecore_ipc_libs = @ecore_ipc_libs@
405ecore_psl1ght_cflags = @ecore_psl1ght_cflags@
406ecore_psl1ght_libs = @ecore_psl1ght_libs@
407ecore_sdl_cflags = @ecore_sdl_cflags@
408ecore_sdl_libs = @ecore_sdl_libs@
409ecore_wayland_cflags = @ecore_wayland_cflags@
410ecore_wayland_libs = @ecore_wayland_libs@
411ecore_win32_cflags = @ecore_win32_cflags@
412ecore_win32_libs = @ecore_win32_libs@
413ecore_wince_cflags = @ecore_wince_cflags@
414ecore_wince_libs = @ecore_wince_libs@
415ecore_x_cflags = @ecore_x_cflags@
416ecore_x_libs = @ecore_x_libs@
417ecore_x_libs_private = @ecore_x_libs_private@
418efl_doxygen = @efl_doxygen@
419efl_have_doxygen = @efl_have_doxygen@
420exec_prefix = @exec_prefix@
421have_ecore_x_xcb_define = @have_ecore_x_xcb_define@
422host = @host@
423host_alias = @host_alias@
424host_cpu = @host_cpu@
425host_os = @host_os@
426host_vendor = @host_vendor@
427htmldir = @htmldir@
428includedir = @includedir@
429infodir = @infodir@
430install_sh = @install_sh@
431libdir = @libdir@
432libexecdir = @libexecdir@
433localedir = @localedir@
434localstatedir = @localstatedir@
435lt_ECHO = @lt_ECHO@
436lt_enable_auto_import = @lt_enable_auto_import@
437mandir = @mandir@
438mkdir_p = @mkdir_p@
439oldincludedir = @oldincludedir@
440pdfdir = @pdfdir@
441pkgconfig_requires_private = @pkgconfig_requires_private@
442prefix = @prefix@
443program_transform_name = @program_transform_name@
444psdir = @psdir@
445release_info = @release_info@
446requirements_ecore = @requirements_ecore@
447requirements_ecore_cocoa = @requirements_ecore_cocoa@
448requirements_ecore_con = @requirements_ecore_con@
449requirements_ecore_directfb = @requirements_ecore_directfb@
450requirements_ecore_evas = @requirements_ecore_evas@
451requirements_ecore_fb = @requirements_ecore_fb@
452requirements_ecore_file = @requirements_ecore_file@
453requirements_ecore_imf = @requirements_ecore_imf@
454requirements_ecore_imf_evas = @requirements_ecore_imf_evas@
455requirements_ecore_imf_scim = @requirements_ecore_imf_scim@
456requirements_ecore_imf_xim = @requirements_ecore_imf_xim@
457requirements_ecore_input = @requirements_ecore_input@
458requirements_ecore_input_evas = @requirements_ecore_input_evas@
459requirements_ecore_ipc = @requirements_ecore_ipc@
460requirements_ecore_psl1ght = @requirements_ecore_psl1ght@
461requirements_ecore_sdl = @requirements_ecore_sdl@
462requirements_ecore_wayland = @requirements_ecore_wayland@
463requirements_ecore_win32 = @requirements_ecore_win32@
464requirements_ecore_wince = @requirements_ecore_wince@
465requirements_ecore_x = @requirements_ecore_x@
466rt_libs = @rt_libs@
467sbindir = @sbindir@
468sharedstatedir = @sharedstatedir@
469srcdir = @srcdir@
470sysconfdir = @sysconfdir@
471target_alias = @target_alias@
472top_build_prefix = @top_build_prefix@
473top_builddir = @top_builddir@
474top_srcdir = @top_srcdir@
475version_info = @version_info@
476x_cflags = @x_cflags@
477x_includes = @x_includes@
478x_libs = @x_libs@
479MAINTAINERCLEANFILES = Makefile.in
480AM_CPPFLAGS = \
481-I$(top_srcdir)/src/lib/ecore \
482-I$(top_srcdir)/src/lib/ecore_evas \
483-I$(top_srcdir)/src/lib/ecore_input \
484-I$(top_builddir)/src/lib/ecore \
485-I$(top_builddir)/src/lib/ecore_evas \
486-I$(top_builddir)/src/lib/ecore_input \
487@EFL_ECORE_PSL1GHT_BUILD@ \
488@EVAS_CFLAGS@ \
489@EINA_CFLAGS@
490
491lib_LTLIBRARIES = libecore_psl1ght.la
492includes_HEADERS = Ecore_Psl1ght.h
493includesdir = $(includedir)/ecore-@VMAJ@
494libecore_psl1ght_la_SOURCES = \
495ecore_psl1ght.c \
496moveutil.c \
497spursutil.c
498
499libecore_psl1ght_la_LIBADD = \
500$(top_builddir)/src/lib/ecore/libecore.la \
501$(top_builddir)/src/lib/ecore_input/libecore_input.la \
502@EINA_LIBS@
503
504libecore_psl1ght_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -version-info @version_info@ @release_info@
505EXTRA_DIST = Ecore_Psl1ght_Keys.h ecore_psl1ght_private.h
506all: all-am
507
508.SUFFIXES:
509.SUFFIXES: .c .lo .o .obj
510$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
511 @for dep in $?; do \
512 case '$(am__configure_deps)' in \
513 *$$dep*) \
514 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
515 && { if test -f $@; then exit 0; else break; fi; }; \
516 exit 1;; \
517 esac; \
518 done; \
519 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/ecore_psl1ght/Makefile'; \
520 $(am__cd) $(top_srcdir) && \
521 $(AUTOMAKE) --gnu src/lib/ecore_psl1ght/Makefile
522.PRECIOUS: Makefile
523Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
524 @case '$?' in \
525 *config.status*) \
526 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
527 *) \
528 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
529 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
530 esac;
531
532$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
533 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
534
535$(top_srcdir)/configure: $(am__configure_deps)
536 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
537$(ACLOCAL_M4): $(am__aclocal_m4_deps)
538 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
539$(am__aclocal_m4_deps):
540install-libLTLIBRARIES: $(lib_LTLIBRARIES)
541 @$(NORMAL_INSTALL)
542 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
543 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
544 list2=; for p in $$list; do \
545 if test -f $$p; then \
546 list2="$$list2 $$p"; \
547 else :; fi; \
548 done; \
549 test -z "$$list2" || { \
550 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
551 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
552 }
553
554uninstall-libLTLIBRARIES:
555 @$(NORMAL_UNINSTALL)
556 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
557 for p in $$list; do \
558 $(am__strip_dir) \
559 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
560 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
561 done
562
563clean-libLTLIBRARIES:
564 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
565 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
566 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
567 test "$$dir" != "$$p" || dir=.; \
568 echo "rm -f \"$${dir}/so_locations\""; \
569 rm -f "$${dir}/so_locations"; \
570 done
571libecore_psl1ght.la: $(libecore_psl1ght_la_OBJECTS) $(libecore_psl1ght_la_DEPENDENCIES)
572 $(AM_V_CCLD)$(libecore_psl1ght_la_LINK) -rpath $(libdir) $(libecore_psl1ght_la_OBJECTS) $(libecore_psl1ght_la_LIBADD) $(LIBS)
573
574mostlyclean-compile:
575 -rm -f *.$(OBJEXT)
576
577distclean-compile:
578 -rm -f *.tab.c
579
580@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ecore_psl1ght.Plo@am__quote@
581@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/moveutil.Plo@am__quote@
582@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/spursutil.Plo@am__quote@
583
584.c.o:
585@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
586@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
587@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
588@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
589@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
590@am__fastdepCC_FALSE@ $(COMPILE) -c $<
591
592.c.obj:
593@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
594@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
595@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
596@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
597@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
598@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
599
600.c.lo:
601@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
602@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
603@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
604@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
605@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
606@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
607
608mostlyclean-libtool:
609 -rm -f *.lo
610
611clean-libtool:
612 -rm -rf .libs _libs
613install-includesHEADERS: $(includes_HEADERS)
614 @$(NORMAL_INSTALL)
615 test -z "$(includesdir)" || $(MKDIR_P) "$(DESTDIR)$(includesdir)"
616 @list='$(includes_HEADERS)'; test -n "$(includesdir)" || list=; \
617 for p in $$list; do \
618 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
619 echo "$$d$$p"; \
620 done | $(am__base_list) | \
621 while read files; do \
622 echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includesdir)'"; \
623 $(INSTALL_HEADER) $$files "$(DESTDIR)$(includesdir)" || exit $$?; \
624 done
625
626uninstall-includesHEADERS:
627 @$(NORMAL_UNINSTALL)
628 @list='$(includes_HEADERS)'; test -n "$(includesdir)" || list=; \
629 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
630 test -n "$$files" || exit 0; \
631 echo " ( cd '$(DESTDIR)$(includesdir)' && rm -f" $$files ")"; \
632 cd "$(DESTDIR)$(includesdir)" && rm -f $$files
633
634ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
635 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
636 unique=`for i in $$list; do \
637 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
638 done | \
639 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
640 END { if (nonempty) { for (i in files) print i; }; }'`; \
641 mkid -fID $$unique
642tags: TAGS
643
644TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
645 $(TAGS_FILES) $(LISP)
646 set x; \
647 here=`pwd`; \
648 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
649 unique=`for i in $$list; do \
650 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
651 done | \
652 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
653 END { if (nonempty) { for (i in files) print i; }; }'`; \
654 shift; \
655 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
656 test -n "$$unique" || unique=$$empty_fix; \
657 if test $$# -gt 0; then \
658 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
659 "$$@" $$unique; \
660 else \
661 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
662 $$unique; \
663 fi; \
664 fi
665ctags: CTAGS
666CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
667 $(TAGS_FILES) $(LISP)
668 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
669 unique=`for i in $$list; do \
670 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
671 done | \
672 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
673 END { if (nonempty) { for (i in files) print i; }; }'`; \
674 test -z "$(CTAGS_ARGS)$$unique" \
675 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
676 $$unique
677
678GTAGS:
679 here=`$(am__cd) $(top_builddir) && pwd` \
680 && $(am__cd) $(top_srcdir) \
681 && gtags -i $(GTAGS_ARGS) "$$here"
682
683distclean-tags:
684 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
685
686distdir: $(DISTFILES)
687 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
688 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
689 list='$(DISTFILES)'; \
690 dist_files=`for file in $$list; do echo $$file; done | \
691 sed -e "s|^$$srcdirstrip/||;t" \
692 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
693 case $$dist_files in \
694 */*) $(MKDIR_P) `echo "$$dist_files" | \
695 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
696 sort -u` ;; \
697 esac; \
698 for file in $$dist_files; do \
699 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
700 if test -d $$d/$$file; then \
701 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
702 if test -d "$(distdir)/$$file"; then \
703 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
704 fi; \
705 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
706 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
707 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
708 fi; \
709 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
710 else \
711 test -f "$(distdir)/$$file" \
712 || cp -p $$d/$$file "$(distdir)/$$file" \
713 || exit 1; \
714 fi; \
715 done
716check-am: all-am
717check: check-am
718all-am: Makefile $(LTLIBRARIES) $(HEADERS)
719installdirs:
720 for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includesdir)"; do \
721 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
722 done
723install: install-am
724install-exec: install-exec-am
725install-data: install-data-am
726uninstall: uninstall-am
727
728install-am: all-am
729 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
730
731installcheck: installcheck-am
732install-strip:
733 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
734 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
735 `test -z '$(STRIP)' || \
736 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
737mostlyclean-generic:
738
739clean-generic:
740
741distclean-generic:
742 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
743 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
744
745maintainer-clean-generic:
746 @echo "This command is intended for maintainers to use"
747 @echo "it deletes files that may require special tools to rebuild."
748 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
749clean: clean-am
750
751clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
752 mostlyclean-am
753
754distclean: distclean-am
755 -rm -rf ./$(DEPDIR)
756 -rm -f Makefile
757distclean-am: clean-am distclean-compile distclean-generic \
758 distclean-tags
759
760dvi: dvi-am
761
762dvi-am:
763
764html: html-am
765
766html-am:
767
768info: info-am
769
770info-am:
771
772install-data-am: install-includesHEADERS
773
774install-dvi: install-dvi-am
775
776install-dvi-am:
777
778install-exec-am: install-libLTLIBRARIES
779
780install-html: install-html-am
781
782install-html-am:
783
784install-info: install-info-am
785
786install-info-am:
787
788install-man:
789
790install-pdf: install-pdf-am
791
792install-pdf-am:
793
794install-ps: install-ps-am
795
796install-ps-am:
797
798installcheck-am:
799
800maintainer-clean: maintainer-clean-am
801 -rm -rf ./$(DEPDIR)
802 -rm -f Makefile
803maintainer-clean-am: distclean-am maintainer-clean-generic
804
805mostlyclean: mostlyclean-am
806
807mostlyclean-am: mostlyclean-compile mostlyclean-generic \
808 mostlyclean-libtool
809
810pdf: pdf-am
811
812pdf-am:
813
814ps: ps-am
815
816ps-am:
817
818uninstall-am: uninstall-includesHEADERS uninstall-libLTLIBRARIES
819
820.MAKE: install-am install-strip
821
822.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
823 clean-libLTLIBRARIES clean-libtool ctags distclean \
824 distclean-compile distclean-generic distclean-libtool \
825 distclean-tags distdir dvi dvi-am html html-am info info-am \
826 install install-am install-data install-data-am install-dvi \
827 install-dvi-am install-exec install-exec-am install-html \
828 install-html-am install-includesHEADERS install-info \
829 install-info-am install-libLTLIBRARIES install-man install-pdf \
830 install-pdf-am install-ps install-ps-am install-strip \
831 installcheck installcheck-am installdirs maintainer-clean \
832 maintainer-clean-generic mostlyclean mostlyclean-compile \
833 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
834 tags uninstall uninstall-am uninstall-includesHEADERS \
835 uninstall-libLTLIBRARIES
836
837
838# Tell versions [3.59,3.63) of GNU make to not export all variables.
839# Otherwise a system limit (for SysV at least) may be exceeded.
840.NOEXPORT:
diff --git a/libraries/ecore/src/lib/ecore_psl1ght/ecore_psl1ght.c b/libraries/ecore/src/lib/ecore_psl1ght/ecore_psl1ght.c
deleted file mode 100644
index 16487ad..0000000
--- a/libraries/ecore/src/lib/ecore_psl1ght/ecore_psl1ght.c
+++ /dev/null
@@ -1,859 +0,0 @@
1#ifdef HAVE_CONFIG_H
2# include <config.h>
3#endif
4
5#include <sysutil/video.h>
6#include <sysutil/sysutil.h>
7#include <sysmodule/sysmodule.h>
8#include <io/pad.h>
9#include <io/mouse.h>
10#include <io/kb.h>
11#include <io/camera.h>
12#include <io/move.h>
13#include <sys/process.h>
14
15#include "moveutil.h"
16
17#include "Eina.h"
18#include "Ecore_Psl1ght.h"
19#include "Ecore_Input.h"
20#include "Ecore.h"
21#include "ecore_psl1ght_private.h"
22#include "ecore_private.h"
23#include "Ecore_Psl1ght_Keys.h"
24
25/* Allocate 1MB stack to avoid overflows */
26SYS_PROCESS_PARAM(1001, 0x100000);
27
28int _ecore_psl1ght_log_dom = -1;
29
30EAPI int ECORE_PSL1GHT_EVENT_KEY_MODIFIERS = 0;
31EAPI int ECORE_PSL1GHT_EVENT_GOT_FOCUS = 0;
32EAPI int ECORE_PSL1GHT_EVENT_LOST_FOCUS = 0;
33EAPI int ECORE_PSL1GHT_EVENT_EXPOSE = 0;
34EAPI int ECORE_PSL1GHT_EVENT_QUIT = 0;
35
36static int _ecore_psl1ght_init_count = 0;
37static int window_width = 0;
38static int window_height = 0;
39/* Mouse support */
40static int mouse_connected = FALSE;
41static u8 mouse_buttons = 0;
42static int mouse_x = 0;
43static int mouse_y = 0;
44/* Keyboard support */
45static int keyboard_connected = FALSE;
46static KbLed keyboard_leds = {{0}};
47static KbMkey keyboard_mods = {{0}};
48static u16 keyboard_old_key = 0;
49/* Pad support */
50static padData pad_data;
51static padData old_pad_data = {0};
52static int pad_old_x = 0;
53static int pad_old_o = 0;
54/* Move support */
55static int move_connected = FALSE;
56static moveContext *move_context = NULL;
57u16 move_buttons = 0;
58
59static void xmb_event_handler(u64 status, u64 param, void *user_data);
60
61/**
62 * @defgroup Ecore_Psl1ght_Library_Group PSL1GHT Library Functions
63 *
64 * Functions used to set up and shut down the Ecore_Psl1ght functions.
65 */
66
67/**
68 * Sets up the Ecore_Psl1ght library.
69 * @param name device target name
70 * @return @c 0 on failure. Otherwise, the number of times the library has
71 * been initialised without being shut down.
72 * @ingroup Ecore_PSL1GHT_Library_Group
73 */
74EAPI int
75ecore_psl1ght_init(const char *name __UNUSED__)
76{
77 videoState state;
78 videoResolution resolution;
79 int ret, camera_loaded, gem_loaded;
80
81 if (++_ecore_psl1ght_init_count != 1)
82 return _ecore_psl1ght_init_count;
83 _ecore_psl1ght_log_dom = eina_log_domain_register
84 ("ecore_psl1ght", ECORE_PSL1GHT_DEFAULT_LOG_COLOR);
85 if (_ecore_psl1ght_log_dom < 0)
86 {
87 EINA_LOG_ERR("Impossible to create a log domain for the Ecore PSL1GHT module.");
88 return --_ecore_psl1ght_init_count;
89 }
90 if (!ecore_event_init())
91 {
92 eina_log_domain_unregister(_ecore_psl1ght_log_dom);
93 _ecore_psl1ght_log_dom = -1;
94 return --_ecore_psl1ght_init_count;
95 }
96
97 if (videoGetState (0, 0, &state) == 0 &&
98 videoGetResolution (state.displayMode.resolution, &resolution) == 0)
99 {
100 ecore_psl1ght_resolution_set (resolution.width, resolution.height);
101 }
102 else
103 {
104 ecore_event_shutdown();
105 eina_log_domain_unregister(_ecore_psl1ght_log_dom);
106 _ecore_psl1ght_log_dom = -1;
107 return --_ecore_psl1ght_init_count;
108 }
109
110 /* Pad support */
111 ioPadInit (7);
112 /* Mouse support */
113 ioMouseInit(2);
114 mouse_buttons = 0;
115 mouse_x = 0;
116 mouse_y = 0;
117
118 /* Keyboard support */
119 ioKbInit(2);
120 keyboard_leds._KbLedU.leds = 0;
121 keyboard_mods._KbMkeyU.mkeys = 0;
122
123 /* Initialize Move */
124 move_context = NULL;
125 move_buttons = 0;
126
127 camera_loaded = !sysModuleIsLoaded (SYSMODULE_CAMERA);
128 if (!camera_loaded)
129 ret = sysModuleLoad (SYSMODULE_CAMERA);
130 else
131 ret = 0;
132 if (ret == 0)
133 {
134 gem_loaded = !sysModuleIsLoaded (SYSMODULE_GEM);
135 if (!gem_loaded)
136 ret = sysModuleLoad (SYSMODULE_GEM);
137 if (ret == 0)
138 {
139 move_context = initMove ();
140 }
141 else {
142 if (gem_loaded)
143 sysModuleUnload (SYSMODULE_CAMERA);
144 }
145 }
146
147 sysUtilRegisterCallback (SYSUTIL_EVENT_SLOT0, xmb_event_handler, NULL);
148
149 ECORE_PSL1GHT_EVENT_GOT_FOCUS = ecore_event_type_new();
150 ECORE_PSL1GHT_EVENT_LOST_FOCUS = ecore_event_type_new();
151 ECORE_PSL1GHT_EVENT_EXPOSE = ecore_event_type_new();
152 ECORE_PSL1GHT_EVENT_KEY_MODIFIERS = ecore_event_type_new();
153 ECORE_PSL1GHT_EVENT_QUIT = ecore_event_type_new();
154
155 mouse_x = 0;
156 mouse_y = 0;
157
158 return _ecore_psl1ght_init_count;
159}
160
161/**
162 * Shuts down the Ecore_Psl1ght library.
163 * @return @c The number of times the system has been initialised without
164 * being shut down.
165 * @ingroup Ecore_PSL1GHT_Library_Group
166 */
167EAPI int
168ecore_psl1ght_shutdown(void)
169{
170 if (--_ecore_psl1ght_init_count != 0)
171 return _ecore_psl1ght_init_count;
172
173 ecore_event_shutdown();
174 eina_log_domain_unregister(_ecore_psl1ght_log_dom);
175 _ecore_psl1ght_log_dom = -1;
176
177 ECORE_PSL1GHT_EVENT_GOT_FOCUS = 0;
178 ECORE_PSL1GHT_EVENT_LOST_FOCUS = 0;
179 ECORE_PSL1GHT_EVENT_EXPOSE = 0;
180 ECORE_PSL1GHT_EVENT_KEY_MODIFIERS = 0;
181 ECORE_PSL1GHT_EVENT_QUIT = 0;
182
183 ioPadEnd();
184 ioMouseEnd();
185 ioKbEnd();
186
187 if (move_context)
188 {
189 endMove (move_context);
190 move_context = NULL;
191 sysModuleUnload (SYSMODULE_CAMERA);
192 sysModuleUnload (SYSMODULE_GEM);
193 }
194
195 sysUtilUnregisterCallback(SYSUTIL_EVENT_SLOT0);
196
197 return _ecore_psl1ght_init_count;
198}
199
200static unsigned int
201_ecore_psl1ght_get_time(void)
202{
203 return (unsigned int)((unsigned long long)
204 (ecore_time_get() * 1000.0) & 0xffffffff);
205}
206
207static unsigned int
208_ecore_psl1ght_get_modifiers(void)
209{
210 unsigned int modifiers = 0;
211
212 if (keyboard_mods._KbMkeyU._KbMkeyS.r_shift ||
213 keyboard_mods._KbMkeyU._KbMkeyS.l_shift)
214 modifiers |= ECORE_EVENT_MODIFIER_SHIFT;
215 if (keyboard_mods._KbMkeyU._KbMkeyS.r_ctrl ||
216 keyboard_mods._KbMkeyU._KbMkeyS.l_ctrl)
217 modifiers |= ECORE_EVENT_MODIFIER_CTRL;
218 if (keyboard_mods._KbMkeyU._KbMkeyS.r_alt ||
219 keyboard_mods._KbMkeyU._KbMkeyS.l_alt)
220 modifiers |= ECORE_EVENT_MODIFIER_ALT;
221 if (keyboard_mods._KbMkeyU._KbMkeyS.r_win ||
222 keyboard_mods._KbMkeyU._KbMkeyS.l_win)
223 modifiers |= ECORE_EVENT_MODIFIER_WIN;
224
225 if (keyboard_leds._KbLedU._KbLedS.num_lock)
226 modifiers |= ECORE_EVENT_LOCK_NUM;
227 if (keyboard_leds._KbLedU._KbLedS.caps_lock)
228 modifiers |= ECORE_EVENT_LOCK_CAPS;
229 if (keyboard_leds._KbLedU._KbLedS.scroll_lock)
230 modifiers |= ECORE_EVENT_LOCK_SCROLL;
231
232 return modifiers;
233}
234
235static void
236_ecore_psl1ght_key_modifiers(KbMkey *mods, KbLed *leds)
237{
238 Ecore_Psl1ght_Event_Key_Modifiers *ev;
239 Eina_Bool emit = EINA_FALSE;
240
241 ev = malloc(sizeof(Ecore_Psl1ght_Event_Key_Modifiers));
242 if (!ev) return;
243
244 if (mods->_KbMkeyU._KbMkeyS.l_shift !=
245 keyboard_mods._KbMkeyU._KbMkeyS.l_shift ||
246 mods->_KbMkeyU._KbMkeyS.r_shift !=
247 keyboard_mods._KbMkeyU._KbMkeyS.r_shift)
248 {
249 emit = EINA_TRUE;
250 ev->shift_changed = EINA_TRUE;
251 ev->shift = mods->_KbMkeyU._KbMkeyS.r_shift |
252 mods->_KbMkeyU._KbMkeyS.l_shift;
253 }
254 if (mods->_KbMkeyU._KbMkeyS.l_ctrl !=
255 keyboard_mods._KbMkeyU._KbMkeyS.l_ctrl ||
256 mods->_KbMkeyU._KbMkeyS.r_ctrl !=
257 keyboard_mods._KbMkeyU._KbMkeyS.r_ctrl)
258 {
259 emit = EINA_TRUE;
260 ev->ctrl_changed = EINA_TRUE;
261 ev->ctrl = mods->_KbMkeyU._KbMkeyS.r_ctrl |
262 mods->_KbMkeyU._KbMkeyS.l_ctrl;
263 }
264 if (mods->_KbMkeyU._KbMkeyS.l_alt !=
265 keyboard_mods._KbMkeyU._KbMkeyS.l_alt ||
266 mods->_KbMkeyU._KbMkeyS.r_alt !=
267 keyboard_mods._KbMkeyU._KbMkeyS.r_alt)
268 {
269 emit = EINA_TRUE;
270 ev->alt_changed = EINA_TRUE;
271 ev->alt = mods->_KbMkeyU._KbMkeyS.r_alt |
272 mods->_KbMkeyU._KbMkeyS.l_alt;
273 }
274 if (mods->_KbMkeyU._KbMkeyS.l_win !=
275 keyboard_mods._KbMkeyU._KbMkeyS.l_win ||
276 mods->_KbMkeyU._KbMkeyS.r_win !=
277 keyboard_mods._KbMkeyU._KbMkeyS.r_win)
278 {
279 emit = EINA_TRUE;
280 ev->win_changed = EINA_TRUE;
281 ev->win = mods->_KbMkeyU._KbMkeyS.r_win |
282 mods->_KbMkeyU._KbMkeyS.l_win;
283 }
284 keyboard_mods = *mods;
285
286 if (leds->_KbLedU._KbLedS.num_lock !=
287 keyboard_leds._KbLedU._KbLedS.num_lock)
288 {
289 emit = EINA_TRUE;
290 ev->num_lock_changed = EINA_TRUE;
291 ev->num_lock = leds->_KbLedU._KbLedS.num_lock;
292 }
293 if (leds->_KbLedU._KbLedS.caps_lock !=
294 keyboard_leds._KbLedU._KbLedS.caps_lock)
295 {
296 emit = EINA_TRUE;
297 ev->caps_lock_changed = EINA_TRUE;
298 ev->caps_lock = leds->_KbLedU._KbLedS.caps_lock;
299 }
300 if (leds->_KbLedU._KbLedS.scroll_lock !=
301 keyboard_leds._KbLedU._KbLedS.scroll_lock)
302 {
303 emit = EINA_TRUE;
304 ev->scroll_lock_changed = EINA_TRUE;
305 ev->scroll_lock = leds->_KbLedU._KbLedS.scroll_lock;
306 }
307 keyboard_leds = *leds;
308
309 if (emit)
310 {
311 ev->timestamp = _ecore_psl1ght_get_time ();
312 ev->modifiers = _ecore_psl1ght_get_modifiers();
313 ecore_event_add(ECORE_PSL1GHT_EVENT_KEY_MODIFIERS, ev, NULL, NULL);
314 }
315 else
316 {
317 free(ev);
318 }
319}
320
321static void
322unicodeToUtf8(u16 w, char *utf8buf)
323{
324 unsigned char *utf8s = (unsigned char *)utf8buf;
325
326 if ( w < 0x0080 )
327 {
328 utf8s[0] = ( unsigned char )w;
329 utf8s[1] = 0;
330 }
331 else if ( w < 0x0800 )
332 {
333 utf8s[0] = 0xc0 | ((w) >> 6);
334 utf8s[1] = 0x80 | ((w) & 0x3f);
335 utf8s[2] = 0;
336 }
337 else {
338 utf8s[0] = 0xe0 | ((w) >> 12);
339 utf8s[1] = 0x80 | (((w) >> 6) & 0x3f);
340 utf8s[2] = 0x80 | ((w) & 0x3f);
341 utf8s[3] = 0;
342 }
343}
344
345static Ecore_Event_Key *
346_ecore_psl1ght_event_key(u16 key)
347{
348 Ecore_Event_Key *ev;
349 char utf8[4];
350 u16 utf16;
351 unsigned int i;
352
353 ev = malloc(sizeof(Ecore_Event_Key));
354 if (!ev) return NULL;
355
356 ev->timestamp = _ecore_psl1ght_get_time ();
357 ev->window = 0;
358 ev->event_window = 0;
359 ev->modifiers = _ecore_psl1ght_get_modifiers();
360
361 key &= ~KB_KEYPAD;
362 for (i = 0; i < sizeof(keystable) / sizeof(struct _ecore_psl1ght_keys_s); ++i)
363 if (keystable[i].code == key)
364 {
365 ev->keyname = keystable[i].name;
366 ev->key = keystable[i].name;
367 ev->string = keystable[i].compose;
368 ev->compose = keystable[i].compose;
369
370 return ev;
371 }
372
373 utf16 = ioKbCnvRawCode (KB_MAPPING_101, keyboard_mods, keyboard_leds, key);
374 unicodeToUtf8(utf16, utf8);
375 ev->keyname = ev->key = ev->string = ev->compose = strdup (utf8);
376
377 return ev;
378}
379
380static void
381_ecore_psl1ght_mouse_move(s32 x_axis, s32 y_axis)
382{
383 Ecore_Event_Mouse_Move *ev;
384
385 ev = malloc(sizeof(Ecore_Event_Mouse_Move));
386 if (!ev) return;
387
388 mouse_x += x_axis;
389 mouse_y += y_axis;
390 if (mouse_x < 0) mouse_x = 0;
391 if (mouse_y < 0) mouse_y = 0;
392 if (mouse_x > window_width) mouse_x = window_width;
393 if (mouse_y > window_height) mouse_y = window_height;
394
395 ev->window = 0;
396 ev->root_window = 0;
397 ev->event_window = 0;
398 ev->same_screen = 0;
399 ev->timestamp = _ecore_psl1ght_get_time ();
400 ev->modifiers = _ecore_psl1ght_get_modifiers ();
401 ev->x = ev->root.x = mouse_x;
402 ev->y = ev->root.x = mouse_y;
403
404 ev->multi.device = 0;
405 ev->multi.radius = ev->multi.radius_x = ev->multi.radius_y = 0;
406 ev->multi.pressure = ev->multi.angle = 0;
407 ev->multi.x = ev->multi.y = ev->multi.root.x = ev->multi.root.y = 0;
408
409 ecore_event_add(ECORE_EVENT_MOUSE_MOVE, ev, NULL, NULL);
410}
411
412static void
413_ecore_psl1ght_mouse_button(int button, int pressed)
414{
415 Ecore_Event_Mouse_Button *ev;
416 static unsigned int previous_timestamp = 0;
417
418 ev = malloc(sizeof(Ecore_Event_Mouse_Button));
419 if (!ev) return;
420
421 ev->window = 0;
422 ev->root_window = 0;
423 ev->event_window = 0;
424 ev->same_screen = 0;
425 ev->timestamp = _ecore_psl1ght_get_time ();
426 ev->modifiers = _ecore_psl1ght_get_modifiers ();
427 ev->buttons = button;
428 if (ev->timestamp - previous_timestamp <= 500)
429 ev->double_click = 1;
430 ev->triple_click = 0;
431 previous_timestamp = ev->timestamp;
432
433 ev->x = ev->root.x = mouse_x;
434 ev->y = ev->root.y = mouse_y;
435 ev->multi.device = 0;
436 ev->multi.radius = ev->multi.radius_x = ev->multi.radius_y = 0;
437 ev->multi.pressure = ev->multi.angle = 0;
438 ev->multi.x = ev->multi.y = ev->multi.root.x = ev->multi.root.y = 0;
439
440 if (pressed)
441 ecore_event_add(ECORE_EVENT_MOUSE_BUTTON_DOWN, ev, NULL, NULL);
442 else
443 ecore_event_add(ECORE_EVENT_MOUSE_BUTTON_UP, ev, NULL, NULL);
444}
445
446static void
447_ecore_psl1ght_mouse_wheel(s8 wheel, s8 tilt)
448{
449 Ecore_Event_Mouse_Wheel *ev;
450
451 ev = malloc(sizeof(Ecore_Event_Mouse_Wheel));
452 if (!ev) return;
453
454 ev->timestamp = _ecore_psl1ght_get_time ();
455 ev->window = 0;
456 ev->event_window = 0;
457 ev->modifiers = _ecore_psl1ght_get_modifiers ();
458 ev->direction = 0;
459 ev->z = wheel;
460
461 ecore_event_add(ECORE_EVENT_MOUSE_WHEEL, ev, NULL, NULL);
462}
463
464static void
465_ecore_psl1ght_pad_button (const char *name, int pressed)
466{
467 Ecore_Event_Key *ev = NULL;
468
469 ev = malloc(sizeof(Ecore_Event_Key));
470 if (!ev) return;
471
472 ev->timestamp = _ecore_psl1ght_get_time ();
473 ev->window = 0;
474 ev->event_window = 0;
475 ev->modifiers = 0;
476
477 ev->keyname = name;
478 ev->key = name;
479 ev->string = "";
480 ev->compose = "";
481
482 if (pressed)
483 ecore_event_add(ECORE_EVENT_KEY_DOWN, ev, NULL, NULL);
484 else
485 ecore_event_add(ECORE_EVENT_KEY_UP, ev, NULL, NULL);
486}
487
488#define PAD_STICK_DEADZONE 0x20
489
490static void
491_ecore_psl1ght_poll_joypad(void)
492{
493 padInfo padinfo;
494 int i;
495
496 /**/
497 /* Check mouse events */
498 ioPadGetInfo (&padinfo);
499
500 for (i = 0; i < 4; i++) /* Ignore the move */
501 {
502 if (padinfo.status[i])
503 {
504 int analog_h, analog_v;
505
506 if (ioPadGetData (i, &pad_data) != 0)
507 continue;
508 analog_h = pad_data.ANA_L_H - 0x80;
509 analog_v = pad_data.ANA_L_V - 0x80;
510
511 if (analog_h > PAD_STICK_DEADZONE)
512 analog_h -= PAD_STICK_DEADZONE;
513 else if (analog_h < -PAD_STICK_DEADZONE)
514 analog_h += PAD_STICK_DEADZONE;
515 else
516 analog_h = 0;
517 analog_h /= 10;
518
519 if (analog_v > PAD_STICK_DEADZONE)
520 analog_v -= PAD_STICK_DEADZONE;
521 else if (analog_v < -PAD_STICK_DEADZONE)
522 analog_v += PAD_STICK_DEADZONE;
523 else
524 analog_v = 0;
525 analog_v /= 10;
526
527 if (analog_h != 0 || analog_v != 0)
528 _ecore_psl1ght_mouse_move (analog_h, analog_v);
529
530 if (old_pad_data.BTN_CROSS ^ pad_data.BTN_CROSS) {
531 _ecore_psl1ght_pad_button ("Cross", pad_data.BTN_CROSS);
532 _ecore_psl1ght_mouse_button (1, pad_data.BTN_CROSS);
533 }
534 if (old_pad_data.BTN_CIRCLE ^ pad_data.BTN_CIRCLE) {
535 _ecore_psl1ght_pad_button ("Circle", pad_data.BTN_CIRCLE);
536 _ecore_psl1ght_mouse_button (3, pad_data.BTN_CIRCLE);
537 }
538 if (old_pad_data.BTN_SQUARE ^ pad_data.BTN_SQUARE)
539 _ecore_psl1ght_pad_button ("Square", pad_data.BTN_SQUARE);
540 if (old_pad_data.BTN_TRIANGLE ^ pad_data.BTN_TRIANGLE)
541 _ecore_psl1ght_pad_button ("Triangle", pad_data.BTN_TRIANGLE);
542 if (old_pad_data.BTN_UP ^ pad_data.BTN_UP)
543 _ecore_psl1ght_pad_button ("Up", pad_data.BTN_UP);
544 if (old_pad_data.BTN_DOWN ^ pad_data.BTN_DOWN)
545 _ecore_psl1ght_pad_button ("Down", pad_data.BTN_DOWN);
546 if (old_pad_data.BTN_LEFT ^ pad_data.BTN_LEFT)
547 _ecore_psl1ght_pad_button ("Left", pad_data.BTN_LEFT);
548 if (old_pad_data.BTN_RIGHT ^ pad_data.BTN_RIGHT)
549 _ecore_psl1ght_pad_button ("Right", pad_data.BTN_RIGHT);
550 if (old_pad_data.BTN_L1 ^ pad_data.BTN_L1)
551 _ecore_psl1ght_pad_button ("L1", pad_data.BTN_L1);
552 if (old_pad_data.BTN_L2 ^ pad_data.BTN_L2)
553 _ecore_psl1ght_pad_button ("L2", pad_data.BTN_L2);
554 if (old_pad_data.BTN_L3 ^ pad_data.BTN_L3)
555 _ecore_psl1ght_pad_button ("L3", pad_data.BTN_L3);
556 if (old_pad_data.BTN_R1 ^ pad_data.BTN_R1)
557 _ecore_psl1ght_pad_button ("R1", pad_data.BTN_R1);
558 if (old_pad_data.BTN_R2 ^ pad_data.BTN_R2)
559 _ecore_psl1ght_pad_button ("R2", pad_data.BTN_R2);
560 if (old_pad_data.BTN_R3 ^ pad_data.BTN_R3)
561 _ecore_psl1ght_pad_button ("R3", pad_data.BTN_R3);
562 if (old_pad_data.BTN_START ^ pad_data.BTN_START)
563 _ecore_psl1ght_pad_button ("Start", pad_data.BTN_START);
564 if (old_pad_data.BTN_SELECT ^ pad_data.BTN_SELECT)
565 _ecore_psl1ght_pad_button ("Select", pad_data.BTN_SELECT);
566
567 old_pad_data = pad_data;
568 }
569 }
570}
571
572static void
573_ecore_psl1ght_poll_mouse(void)
574{
575 mouseInfo mouseinfo;
576 u32 i;
577
578 /**/
579 /* Check mouse events */
580 ioMouseGetInfo(&mouseinfo);
581
582 if (mouseinfo.status[0] == 1 && !mouse_connected) // Connected
583 {
584 mouse_connected = TRUE;
585 mouse_buttons = 0;
586
587 // Old events in the queue are discarded
588 ioMouseClearBuf(0);
589 }
590 else if (mouseinfo.status[0] != 1 && mouse_connected) // Disconnected
591 {
592 mouse_connected = FALSE;
593 mouse_buttons = 0;
594 }
595
596 if (mouse_connected)
597 {
598 mouseDataList datalist;
599
600 ioMouseGetDataList(0, &datalist);
601
602 for (i = 0; i < datalist.count; i++)
603 {
604 u8 old_left = mouse_buttons & 1;
605 u8 new_left = datalist.list[i].buttons & 1;
606 u8 old_right = mouse_buttons & 2;
607 u8 new_right = datalist.list[i].buttons & 2;
608 u8 old_middle = mouse_buttons & 4;
609 u8 new_middle = datalist.list[i].buttons & 4;
610
611 if (datalist.list[i].x_axis != 0 ||
612 datalist.list[i].y_axis != 0)
613 _ecore_psl1ght_mouse_move (datalist.list[i].x_axis,
614 datalist.list[i].y_axis);
615
616 if (old_left != new_left)
617 _ecore_psl1ght_mouse_button (1, new_left);
618 if (old_middle != new_middle)
619 _ecore_psl1ght_mouse_button (2, new_middle);
620 if (old_right != new_right)
621 _ecore_psl1ght_mouse_button (3, new_right);
622
623 if (datalist.list[i].wheel != 0)
624 _ecore_psl1ght_mouse_wheel (datalist.list[i].wheel,
625 datalist.list[i].tilt);
626
627 mouse_buttons = datalist.list[i].buttons;
628 }
629 }
630}
631
632static void
633_ecore_psl1ght_poll_move(void)
634{
635 int i;
636 u16 new_buttons;
637 static int t_pressed = 0;
638 static int calibrated = 0;
639 static float prev_x = 0;
640 static float prev_y = 0;
641 static int gyro = 0;
642 float x, y, z;
643
644 /* Check move events */
645 processMove (move_context);
646 new_buttons = move_context->state.paddata.buttons & (~move_buttons);
647 move_buttons = move_context->state.paddata.buttons;
648
649 moveGet3DPosition (move_context, &x, &y, &z);
650 //printf ("Move 3D position is : %f, %f, %f\n", x,y,z);
651
652 switch (new_buttons) {
653 case 1:
654 gyro = !gyro;
655 break;
656
657 case 4:
658 // Move button
659 //printf ("Calibrating\n");
660 gemCalibrate (0);
661 calibrated = 1;
662 break;
663
664 case 8:
665 // start button
666 _ecore_psl1ght_mouse_move ((window_width / 2) - mouse_x, (window_height / 2) - mouse_y);
667 break;
668 }
669
670 if (calibrated)
671 {
672 float x_axis, y_axis;
673
674 if (gyro)
675 {
676 gemInertialState gem_inert;
677
678 gemGetInertialState (0, 0, 0, &gem_inert);
679 x_axis = -vec_array (gem_inert.gyro, 1) * 25;
680 y_axis = -vec_array (gem_inert.gyro, 0) * 25;
681 if (abs (x_axis) > 2 || abs (y_axis) > 2)
682 _ecore_psl1ght_mouse_move (x_axis, y_axis);
683 }
684 else {
685 x_axis = (x - prev_x) * 2.5;
686 y_axis = -(y - prev_y) * 2.5;
687 prev_x = x;
688 prev_y = y;
689 _ecore_psl1ght_mouse_move (x_axis, y_axis);
690 }
691
692 if (!t_pressed && (move_buttons & 0x2))
693 _ecore_psl1ght_mouse_button (1, 1);
694 else if (t_pressed && (move_buttons & 0x2) == 0)
695 _ecore_psl1ght_mouse_button (1, 0);
696 t_pressed = move_buttons & 0x2;
697 }
698}
699
700static void
701_ecore_psl1ght_poll_keyboard(void)
702{
703 KbInfo kbInfo;
704 int i;
705
706 /* Check keyboard events */
707 ioKbGetInfo(&kbInfo);
708
709 if (kbInfo.status[0] == 1 && !keyboard_connected)
710 {
711 /* Connected */
712 keyboard_connected = true;
713
714 // Old events in the queue are discarded
715 ioKbClearBuf(0);
716 keyboard_leds._KbLedU.leds = 0;
717 keyboard_mods._KbMkeyU.mkeys = 0;
718 keyboard_old_key = 0;
719
720 // Set raw keyboard code types to get scan codes
721 ioKbSetCodeType(0, KB_CODETYPE_RAW);
722 ioKbSetReadMode(0, KB_RMODE_INPUTCHAR);
723 }
724 else if (kbInfo.status[0] != 1 && keyboard_connected)
725 {
726 /* Disconnected keyboard */
727 keyboard_connected = FALSE;
728 }
729
730 if (keyboard_connected)
731 {
732 KbData Keys;
733
734 // Read data from the keyboard buffer
735 if (ioKbRead(0, &Keys) == 0 && Keys.nb_keycode > 0)
736 {
737 Ecore_Event_Key *ev = NULL;
738
739 _ecore_psl1ght_key_modifiers (&Keys.mkey, &Keys.led);
740
741 if (Keys.nb_keycode == 0 && keyboard_old_key != 0)
742 {
743 ev = _ecore_psl1ght_event_key (keyboard_old_key);
744 if (ev) ecore_event_add(ECORE_EVENT_KEY_UP, ev, NULL, NULL);
745 }
746 for (i = 0; i < Keys.nb_keycode; i++)
747 {
748 if (Keys.keycode[i] != keyboard_old_key)
749 {
750 if (Keys.keycode[i] != 0)
751 {
752 ev = _ecore_psl1ght_event_key (Keys.keycode[i]);
753 if (ev)
754 ecore_event_add(ECORE_EVENT_KEY_DOWN, ev,
755 NULL, NULL);
756 }
757 else
758 {
759 ev = _ecore_psl1ght_event_key (keyboard_old_key);
760 if (ev)
761 ecore_event_add(ECORE_EVENT_KEY_UP, ev,
762 NULL, NULL);
763 }
764 keyboard_old_key = Keys.keycode[0];
765 }
766 }
767 }
768 }
769}
770
771static void
772xmb_event_handler(u64 status, u64 param, void *user_data)
773{
774 //printf ("Received event %lX\n", status);
775 switch (status) {
776 case SYSUTIL_EXIT_GAME:
777 ecore_event_add(ECORE_PSL1GHT_EVENT_QUIT, NULL, NULL, NULL);
778 break;
779 case SYSUTIL_DRAW_BEGIN:
780 ecore_event_add(ECORE_PSL1GHT_EVENT_EXPOSE, NULL, NULL, NULL);
781 case SYSUTIL_MENU_OPEN:
782 ecore_event_add(ECORE_PSL1GHT_EVENT_LOST_FOCUS, NULL, NULL, NULL);
783 break;
784 case SYSUTIL_DRAW_END:
785 ecore_event_add(ECORE_PSL1GHT_EVENT_EXPOSE, NULL, NULL, NULL);
786 case SYSUTIL_MENU_CLOSE:
787 ecore_event_add(ECORE_PSL1GHT_EVENT_GOT_FOCUS, NULL, NULL, NULL);
788 break;
789 default:
790 break;
791 }
792}
793
794EAPI void
795ecore_psl1ght_poll_events(void)
796{
797 _ecore_psl1ght_poll_joypad ();
798 _ecore_psl1ght_poll_mouse ();
799 if (move_context)
800 _ecore_psl1ght_poll_move ();
801 _ecore_psl1ght_poll_keyboard ();
802
803 sysUtilCheckCallback ();
804}
805
806EAPI void
807ecore_psl1ght_resolution_set(int width, int height)
808{
809 window_width = width;
810 window_height = height;
811 if (mouse_x > window_width) mouse_x = window_width;
812 if (mouse_y > window_height) mouse_y = window_height;
813}
814
815EAPI void
816ecore_psl1ght_screen_resolution_get(int *w, int *h)
817{
818 videoState state;
819 videoResolution resolution;
820
821 /* Get the state of the display */
822 if (videoGetState (0, 0, &state) == 0 &&
823 videoGetResolution (state.displayMode.resolution, &resolution) == 0)
824 {
825 if (w) *w = resolution.width;
826 if (h) *h = resolution.height;
827 }
828 else {
829 if (w) *w = 0;
830 if (h) *h = 0;
831 }
832}
833
834EAPI void
835ecore_psl1ght_optimal_screen_resolution_get(int *w, int *h)
836{
837 videoDeviceInfo info;
838 videoResolution res;
839 int area = 720 * 480;
840 int mode_area;
841 int i;
842
843 if (w) *w = 720;
844 if (h) *h = 480;
845
846 videoGetDeviceInfo(0, 0, &info);
847
848 for (i = 0; i < info.availableModeCount; i++) {
849 videoGetResolution (info.availableModes[i].resolution, &res);
850 mode_area = res.width * res.height;
851 if (mode_area > area)
852 {
853 area = mode_area;
854 if (w) *w = res.width;
855 if (h) *h = res.height;
856 }
857 }
858}
859
diff --git a/libraries/ecore/src/lib/ecore_psl1ght/ecore_psl1ght_private.h b/libraries/ecore/src/lib/ecore_psl1ght/ecore_psl1ght_private.h
deleted file mode 100644
index bd5a86e..0000000
--- a/libraries/ecore/src/lib/ecore_psl1ght/ecore_psl1ght_private.h
+++ /dev/null
@@ -1,36 +0,0 @@
1#ifndef _ECORE_PSL1GHT_PRIVATE_H
2# define _ECORE_PSL1GHT_PRIVATE_H
3
4extern int _ecore_psl1ght_log_dom;
5
6# ifdef ECORE_PSL1GHT_DEFAULT_LOG_COLOR
7# undef ECORE_PSL1GHT_DEFAULT_LOG_COLOR
8# endif
9# define ECORE_PSL1GHT_DEFAULT_LOG_COLOR EINA_COLOR_BLUE
10
11# ifdef ERR
12# undef ERR
13# endif
14# define ERR(...) EINA_LOG_DOM_ERR(_ecore_psl1ght_log_dom, __VA_ARGS__)
15
16# ifdef DBG
17# undef DBG
18# endif
19# define DBG(...) EINA_LOG_DOM_DBG(_ecore_psl1ght_log_dom, __VA_ARGS__)
20
21# ifdef INF
22# undef INF
23# endif
24# define INF(...) EINA_LOG_DOM_INFO(_ecore_psl1ght_log_dom, __VA_ARGS__)
25
26# ifdef WRN
27# undef WRN
28# endif
29# define WRN(...) EINA_LOG_DOM_WARN(_ecore_psl1ght_log_dom, __VA_ARGS__)
30
31# ifdef CRIT
32# undef CRIT
33# endif
34# define CRIT(...) EINA_LOG_DOM_CRIT(_ecore_psl1ght_log_dom, __VA_ARGS__)
35
36#endif
diff --git a/libraries/ecore/src/lib/ecore_psl1ght/moveutil.c b/libraries/ecore/src/lib/ecore_psl1ght/moveutil.c
deleted file mode 100644
index 1dadfbc..0000000
--- a/libraries/ecore/src/lib/ecore_psl1ght/moveutil.c
+++ /dev/null
@@ -1,245 +0,0 @@
1#include <stdio.h>
2#include <io/move.h>
3#include <sys/memory.h>
4#include <ppu-types.h>
5#include <io/camera.h>
6#include <ppu-types.h>
7#include <spurs/spurs.h>
8#include <sys/thread.h>
9#include <sys/systime.h>
10
11#include "spursutil.h"
12#include "moveutil.h"
13
14u16 oldGemPad = 0;
15u16 newGemPad = 0;
16u16 newGemAnalogT = 0;
17
18static void
19endCamera(moveContext *context)
20{
21 cameraStop (0);
22
23 cameraClose (0);
24 cameraEnd ();
25
26 sysMemContainerDestroy (context->camInfo.container);
27}
28
29static int
30initCamera(moveContext *context)
31{
32 int ret;
33
34 context->camInfo.container = NULL;
35
36 ret = cameraInit ();
37 printf ("cameraInit() returned %d\n", ret);
38 if (ret == 0)
39 {
40 cameraType type = CAM_TYPE_UNKNOWN;
41
42 ret = cameraGetType (0, &type);
43 if (ret == 0 && type == CAM_TYPE_PLAYSTATION_EYE)
44 {
45 context->camInfo.format = CAM_FORM_RAW8;
46 context->camInfo.framerate = 60;
47 context->camInfo.resolution = CAM_RESO_VGA;
48 context->camInfo.info_ver = 0x0101;
49 ret = sysMemContainerCreate (&context->camInfo.container, 0x200000);
50 printf ("sysMemContainerCreate() for camera container returned %d\n", ret);
51
52 ret = cameraOpenEx (0, &context->camInfo);
53 switch (ret) {
54 case 0:
55 printf ("Found me an eye, arrr!\n");
56 printf ("cameraOpenEx returned %08X\n", ret);
57 printf ("Video dimensions: %dx%d\n", context->camInfo.width, context->camInfo.height);
58 printf ("Buffer at %08X\n", context->camInfo.buffer);
59 printf ("pbuf0 Buffer at %08X\n", context->camInfo.pbuf[0]);
60 printf ("pbuf0 Buffer at %08X\n", context->camInfo.pbuf[1]);
61 printf ("context->camInfo.info_ver %X\n", context->camInfo.info_ver);
62
63 context->camRead.buffer = context->camInfo.buffer;
64 context->camRead.version = 0x0100;
65 printf ("Setting CameraReadEx %08X buffer to cameraInfoex buffer \n",
66 context->camRead.buffer);
67 break;
68
69 default:
70 printf ("Error %X detected opening PlayStation Eye\n", ret);
71 goto error;
72 }
73 }
74 else {
75 printf ("Device detected is not a PlayStation Eye and this sample need it\n");
76 goto error;
77 }
78 }
79 else {
80 goto error;
81 }
82 return ret;
83
84error:
85 if (context->camInfo.container)
86 sysMemContainerDestroy (context->camInfo.container);
87 return ret;
88}
89
90static int
91readCamera(moveContext *context)
92{
93 int ret;
94
95 ret = cameraReadEx (0, &context->camRead);
96 switch (ret) {
97 case CAMERA_ERRO_NEED_START:
98 cameraReset (0);
99 ret = gemPrepareCamera (128, 0.5);
100 printf ("GemPrepareCamera return %d exposure set to 128 and quality to 0.5 before cameraStart\n",
101 ret);
102 printf ("lets go!! It's time to look your face in Sony Bravia :P\n");
103 ret = cameraStart (0);
104 printf ("cameraStart return %d \n", ret);
105 printf ("*******************************************\n");
106 printf ("* Now make sure you have a Move connected\n");
107 printf ("* and point it towards the camera and press\n");
108 printf ("* the action button to calibrate\n");
109 printf ("*******************************************\n");
110 break;
111
112 case 0:
113 break;
114
115 default:
116 printf ("error %08X ", ret);
117 ret = 1;
118 break;
119 }
120 // printf("despues de start return %d \n",ret);
121 if (ret == 0 && context->camRead.readcount != 0)
122 {
123 return context->camRead.readcount;
124 }
125 else {
126 return 0;
127 }
128}
129
130moveContext *
131initMove()
132{
133 moveContext *context = NULL;
134 Spurs *spurs;
135 gemAttribute gem_attr;
136 int ret;
137 int i;
138
139 spurs = initSpurs ("gem_spurs");
140
141 if (spurs == NULL)
142 goto error;
143
144 printf ("preparing GemAttribute structure with spurs\n");
145
146 gem_attr.version = 2;
147 gem_attr.max = 1;
148 gem_attr.spurs = spurs;
149 gem_attr.memory = NULL;
150 gem_attr.spu_priorities[0] = 1;
151 for (i = 1; i < 8; ++i)
152 gem_attr.spu_priorities[i] = 0;
153
154 printf ("calling GemInit with GemAttribute structure version=%d max_connect=%d spurs=%X\n",
155 gem_attr.version, gem_attr.max, gem_attr.spurs);
156 ret = gemInit (&gem_attr);
157 printf ("return from GemInit %X \n", ret);
158 if (ret)
159 goto error;
160
161 ret = gemPrepareCamera (128, 0.5);
162 printf ("GemPrepareCamera return %d exposure set to 128 and quality to 0.5\n",
163 ret);
164 if (ret)
165 goto error;
166 ret = gemReset (0);
167 printf ("GemReset return %X \n", ret);
168 if (ret)
169 goto error;
170
171 context = (moveContext *)malloc (sizeof (moveContext));
172 context->spurs = spurs;
173 ret = initCamera (context);
174
175 if (ret == 0)
176 return context;
177
178error:
179 if (spurs)
180 endSpurs (spurs);
181 if (context)
182 free (context);
183 return NULL;
184}
185
186void
187endMove(moveContext *context)
188{
189 /* Stop Move */
190 gemEnd ();
191 /* Stop Camera */
192 endCamera (context);
193 /* Stop Spurs */
194 endSpurs (context->spurs);
195
196 free (context);
197}
198
199int
200processMove(moveContext *context)
201{
202 const unsigned int hues[] = { 4 << 24, 4 << 24, 4 << 24, 4 << 24 };
203 int ret = -1;
204
205 if (readCamera (context) > 0)
206 {
207 ret = gemUpdateStart (context->camRead.buffer, context->camRead.timestamp);
208 //printf ("Return from gemUpdateStart %X\n", ret);
209 if (ret == 0)
210 {
211 ret = gemUpdateFinish ();
212 //printf ("Return from gemUpdateFinish %X\n", ret);
213 if (ret == 0)
214 {
215 ret = gemGetState (0, STATE_LATEST_IMAGE_TIME, 0, &context->state);
216 switch (ret) {
217 case 2:
218 gemForceRGB (0, 0.5, 0.5, 0.5);
219 break;
220
221 case 5:
222 gemTrackHues (hues, NULL);
223 break;
224
225 default:
226 break;
227 }
228 }
229 }
230 }
231
232 return ret;
233}
234
235void
236moveGet3DPosition(moveContext *context, float *x, float *y, float *z)
237{
238 if (x)
239 *x = vec_array (context->state.pos, 0);
240 if (y)
241 *y = vec_array (context->state.pos, 1);
242 if (z)
243 *z = vec_array (context->state.pos, 2);
244}
245
diff --git a/libraries/ecore/src/lib/ecore_psl1ght/spursutil.c b/libraries/ecore/src/lib/ecore_psl1ght/spursutil.c
deleted file mode 100644
index 27b5c1d..0000000
--- a/libraries/ecore/src/lib/ecore_psl1ght/spursutil.c
+++ /dev/null
@@ -1,62 +0,0 @@
1#include "spursutil.h"
2#include <sys/spu.h>
3
4#define SPURS_DEFAULT_PREFIX_NAME "spursutil"
5
6Spurs *
7initSpurs(const char *prefix_name)
8{
9 Spurs *spurs = NULL;
10 SpursAttribute attributeSpurs;
11 int ret;
12 int i;
13
14 ret = sysSpuInitialize (6, 0);
15 printf ("sysSpuInitialize return %d\n", ret);
16
17 /* initialize spurs */
18 printf ("Initializing spurs\n");
19 spurs = (void *)memalign (SPURS_ALIGN, sizeof (Spurs));
20 printf ("Initializing spurs attribute\n");
21
22 ret = spursAttributeInitialize (&attributeSpurs, 5, 250, 1000, true);
23 if (ret)
24 {
25 printf ("error : spursAttributeInitialize failed %x\n", ret);
26 goto error;
27 }
28
29 printf ("Setting name prefix\n");
30 if (!prefix_name)
31 prefix_name = SPURS_DEFAULT_PREFIX_NAME;
32 ret = spursAttributeSetNamePrefix (&attributeSpurs,
33 prefix_name, strlen (prefix_name));
34 if (ret)
35 {
36 printf ("error : spursAttributeInitialize failed %x\n", ret);
37 goto error;
38 }
39
40 printf ("Initializing with attribute\n");
41 ret = spursInitializeWithAttribute (spurs, &attributeSpurs);
42 if (ret)
43 {
44 printf ("error: spursInitializeWithAttribute failed %x\n", ret);
45 goto error;
46 }
47
48 return spurs;
49
50error:
51 if (spurs)
52 free (spurs);
53 return NULL;
54}
55
56void
57endSpurs(Spurs *spurs)
58{
59 spursFinalize (spurs);
60 free (spurs);
61}
62