diff options
author | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
commit | 07274513e984f0b5544586c74508ccd16e7dcafa (patch) | |
tree | b32ff2a9136fbc1a4a6a0ed1e4d79cde0f5f16d9 /libraries/ecore/src/lib/ecore_psl1ght | |
parent | Added Irrlicht 1.8, but without all the Windows binaries. (diff) | |
download | SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.zip SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.gz SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.bz2 SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.xz |
Remove EFL, since it's been released now.
Diffstat (limited to '')
-rw-r--r-- | libraries/ecore/src/lib/ecore_psl1ght/Ecore_Psl1ght.h | 121 | ||||
-rw-r--r-- | libraries/ecore/src/lib/ecore_psl1ght/Ecore_Psl1ght_Keys.h | 78 | ||||
-rw-r--r-- | libraries/ecore/src/lib/ecore_psl1ght/Makefile.am | 30 | ||||
-rw-r--r-- | libraries/ecore/src/lib/ecore_psl1ght/Makefile.in | 840 | ||||
-rw-r--r-- | libraries/ecore/src/lib/ecore_psl1ght/ecore_psl1ght.c | 859 | ||||
-rw-r--r-- | libraries/ecore/src/lib/ecore_psl1ght/ecore_psl1ght_private.h | 36 | ||||
-rw-r--r-- | libraries/ecore/src/lib/ecore_psl1ght/moveutil.c | 245 | ||||
-rw-r--r-- | libraries/ecore/src/lib/ecore_psl1ght/spursutil.c | 62 |
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 | ||
24 | extern "C" { | ||
25 | #endif | ||
26 | |||
27 | EAPI extern int ECORE_PSL1GHT_EVENT_KEY_MODIFIERS; | ||
28 | EAPI extern int ECORE_PSL1GHT_EVENT_GOT_FOCUS; | ||
29 | EAPI extern int ECORE_PSL1GHT_EVENT_LOST_FOCUS; | ||
30 | EAPI extern int ECORE_PSL1GHT_EVENT_EXPOSE; | ||
31 | EAPI extern int ECORE_PSL1GHT_EVENT_QUIT; | ||
32 | |||
33 | typedef struct _Ecore_Psl1ght_Event_Key_Modifiers Ecore_Psl1ght_Event_Key_Modifiers; | ||
34 | struct _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 | |||
54 | typedef struct _Ecore_Psl1ght_Event_Key_Down Ecore_Psl1ght_Event_Key_Down; | ||
55 | struct _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 | |||
62 | typedef struct _Ecore_Psl1ght_Event_Key_Up Ecore_Psl1ght_Event_Key_Up; | ||
63 | struct _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 | |||
70 | typedef struct _Ecore_Psl1ght_Event_Mouse_Button_Down Ecore_Psl1ght_Event_Mouse_Button_Down; | ||
71 | struct _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 | |||
81 | typedef struct _Ecore_Psl1ght_Event_Mouse_Button_Up Ecore_Psl1ght_Event_Mouse_Button_Up; | ||
82 | struct _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 | |||
92 | typedef struct _Ecore_Psl1ght_Event_Mouse_Move Ecore_Psl1ght_Event_Mouse_Move; | ||
93 | struct _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 | |||
100 | typedef struct _Ecore_Psl1ght_Event_Mouse_Wheel Ecore_Psl1ght_Event_Mouse_Wheel; | ||
101 | struct _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 | |||
109 | EAPI int ecore_psl1ght_init(const char *name); | ||
110 | EAPI int ecore_psl1ght_shutdown(void); | ||
111 | EAPI void ecore_psl1ght_resolution_set(int width, int height); | ||
112 | EAPI void ecore_psl1ght_poll_events(void); | ||
113 | |||
114 | EAPI void ecore_psl1ght_screen_resolution_get(int *w, int *h); | ||
115 | EAPI 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 | |||
4 | struct _ecore_psl1ght_keys_s | ||
5 | { | ||
6 | int code; | ||
7 | const char *name; | ||
8 | const char *compose; | ||
9 | }; | ||
10 | |||
11 | static 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 @@ | |||
1 | MAINTAINERCLEANFILES = Makefile.in | ||
2 | |||
3 | AM_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 | |||
14 | lib_LTLIBRARIES = libecore_psl1ght.la | ||
15 | includes_HEADERS = Ecore_Psl1ght.h | ||
16 | includesdir = $(includedir)/ecore-@VMAJ@ | ||
17 | |||
18 | libecore_psl1ght_la_SOURCES = \ | ||
19 | ecore_psl1ght.c \ | ||
20 | moveutil.c \ | ||
21 | spursutil.c | ||
22 | |||
23 | libecore_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 | |||
28 | libecore_psl1ght_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -version-info @version_info@ @release_info@ | ||
29 | |||
30 | EXTRA_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 | |||
19 | VPATH = @srcdir@ | ||
20 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
21 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
22 | pkglibdir = $(libdir)/@PACKAGE@ | ||
23 | pkglibexecdir = $(libexecdir)/@PACKAGE@ | ||
24 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
25 | install_sh_DATA = $(install_sh) -c -m 644 | ||
26 | install_sh_PROGRAM = $(install_sh) -c | ||
27 | install_sh_SCRIPT = $(install_sh) -c | ||
28 | INSTALL_HEADER = $(INSTALL_DATA) | ||
29 | transform = $(program_transform_name) | ||
30 | NORMAL_INSTALL = : | ||
31 | PRE_INSTALL = : | ||
32 | POST_INSTALL = : | ||
33 | NORMAL_UNINSTALL = : | ||
34 | PRE_UNINSTALL = : | ||
35 | POST_UNINSTALL = : | ||
36 | build_triplet = @build@ | ||
37 | host_triplet = @host@ | ||
38 | subdir = src/lib/ecore_psl1ght | ||
39 | DIST_COMMON = $(includes_HEADERS) $(srcdir)/Makefile.am \ | ||
40 | $(srcdir)/Makefile.in | ||
41 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
42 | am__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 | ||
59 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
60 | $(ACLOCAL_M4) | ||
61 | mkinstalldirs = $(install_sh) -d | ||
62 | CONFIG_HEADER = $(top_builddir)/config.h | ||
63 | CONFIG_CLEAN_FILES = | ||
64 | CONFIG_CLEAN_VPATH_FILES = | ||
65 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | ||
66 | am__vpath_adj = case $$p in \ | ||
67 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | ||
68 | *) f=$$p;; \ | ||
69 | esac; | ||
70 | am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; | ||
71 | am__install_max = 40 | ||
72 | am__nobase_strip_setup = \ | ||
73 | srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` | ||
74 | am__nobase_strip = \ | ||
75 | for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" | ||
76 | am__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] }' | ||
83 | am__base_list = \ | ||
84 | sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ | ||
85 | sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | ||
86 | am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includesdir)" | ||
87 | LTLIBRARIES = $(lib_LTLIBRARIES) | ||
88 | libecore_psl1ght_la_DEPENDENCIES = \ | ||
89 | $(top_builddir)/src/lib/ecore/libecore.la \ | ||
90 | $(top_builddir)/src/lib/ecore_input/libecore_input.la | ||
91 | am_libecore_psl1ght_la_OBJECTS = ecore_psl1ght.lo moveutil.lo \ | ||
92 | spursutil.lo | ||
93 | libecore_psl1ght_la_OBJECTS = $(am_libecore_psl1ght_la_OBJECTS) | ||
94 | AM_V_lt = $(am__v_lt_$(V)) | ||
95 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
96 | am__v_lt_0 = --silent | ||
97 | libecore_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 $@ | ||
101 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
102 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
103 | am__depfiles_maybe = depfiles | ||
104 | am__mv = mv -f | ||
105 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
106 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
107 | LTCOMPILE = $(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) | ||
111 | AM_V_CC = $(am__v_CC_$(V)) | ||
112 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
113 | am__v_CC_0 = @echo " CC " $@; | ||
114 | AM_V_at = $(am__v_at_$(V)) | ||
115 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
116 | am__v_at_0 = @ | ||
117 | CCLD = $(CC) | ||
118 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
119 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
120 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
121 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
122 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
123 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
124 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
125 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
126 | am__v_GEN_0 = @echo " GEN " $@; | ||
127 | SOURCES = $(libecore_psl1ght_la_SOURCES) | ||
128 | DIST_SOURCES = $(libecore_psl1ght_la_SOURCES) | ||
129 | HEADERS = $(includes_HEADERS) | ||
130 | ETAGS = etags | ||
131 | CTAGS = ctags | ||
132 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
133 | ACLOCAL = @ACLOCAL@ | ||
134 | ALLOCA = @ALLOCA@ | ||
135 | AMTAR = @AMTAR@ | ||
136 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
137 | AR = @AR@ | ||
138 | AS = @AS@ | ||
139 | AUTOCONF = @AUTOCONF@ | ||
140 | AUTOHEADER = @AUTOHEADER@ | ||
141 | AUTOMAKE = @AUTOMAKE@ | ||
142 | AWK = @AWK@ | ||
143 | CARES_CFLAGS = @CARES_CFLAGS@ | ||
144 | CARES_LIBS = @CARES_LIBS@ | ||
145 | CC = @CC@ | ||
146 | CCDEPMODE = @CCDEPMODE@ | ||
147 | CFLAGS = @CFLAGS@ | ||
148 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
149 | CHECK_LIBS = @CHECK_LIBS@ | ||
150 | CPP = @CPP@ | ||
151 | CPPFLAGS = @CPPFLAGS@ | ||
152 | CURL_CFLAGS = @CURL_CFLAGS@ | ||
153 | CURL_LIBS = @CURL_LIBS@ | ||
154 | CXX = @CXX@ | ||
155 | CXXCPP = @CXXCPP@ | ||
156 | CXXDEPMODE = @CXXDEPMODE@ | ||
157 | CXXFLAGS = @CXXFLAGS@ | ||
158 | CYGPATH_W = @CYGPATH_W@ | ||
159 | DEFS = @DEFS@ | ||
160 | DEPDIR = @DEPDIR@ | ||
161 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
162 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
163 | DLLTOOL = @DLLTOOL@ | ||
164 | DSYMUTIL = @DSYMUTIL@ | ||
165 | DUMPBIN = @DUMPBIN@ | ||
166 | ECHO_C = @ECHO_C@ | ||
167 | ECHO_N = @ECHO_N@ | ||
168 | ECHO_T = @ECHO_T@ | ||
169 | ECORE_XCB_CFLAGS = @ECORE_XCB_CFLAGS@ | ||
170 | ECORE_XCB_LIBS = @ECORE_XCB_LIBS@ | ||
171 | EFL_ECORE_BUILD = @EFL_ECORE_BUILD@ | ||
172 | EFL_ECORE_CON_BUILD = @EFL_ECORE_CON_BUILD@ | ||
173 | EFL_ECORE_EVAS_BUILD = @EFL_ECORE_EVAS_BUILD@ | ||
174 | EFL_ECORE_FILE_BUILD = @EFL_ECORE_FILE_BUILD@ | ||
175 | EFL_ECORE_IMF_BUILD = @EFL_ECORE_IMF_BUILD@ | ||
176 | EFL_ECORE_IMF_EVAS_BUILD = @EFL_ECORE_IMF_EVAS_BUILD@ | ||
177 | EFL_ECORE_INPUT_BUILD = @EFL_ECORE_INPUT_BUILD@ | ||
178 | EFL_ECORE_INPUT_EVAS_BUILD = @EFL_ECORE_INPUT_EVAS_BUILD@ | ||
179 | EFL_ECORE_IPC_BUILD = @EFL_ECORE_IPC_BUILD@ | ||
180 | EFL_ECORE_PSL1GHT_BUILD = @EFL_ECORE_PSL1GHT_BUILD@ | ||
181 | EFL_ECORE_SDL_BUILD = @EFL_ECORE_SDL_BUILD@ | ||
182 | EFL_ECORE_WIN32_BUILD = @EFL_ECORE_WIN32_BUILD@ | ||
183 | EFL_ECORE_WINCE_BUILD = @EFL_ECORE_WINCE_BUILD@ | ||
184 | EFL_PTHREAD_CFLAGS = @EFL_PTHREAD_CFLAGS@ | ||
185 | EFL_PTHREAD_LIBS = @EFL_PTHREAD_LIBS@ | ||
186 | EGREP = @EGREP@ | ||
187 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
188 | EINA_LIBS = @EINA_LIBS@ | ||
189 | ESCAPE_CFLAGS = @ESCAPE_CFLAGS@ | ||
190 | ESCAPE_LIBS = @ESCAPE_LIBS@ | ||
191 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
192 | EVAS_LIBS = @EVAS_LIBS@ | ||
193 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
194 | EVIL_LIBS = @EVIL_LIBS@ | ||
195 | EXEEXT = @EXEEXT@ | ||
196 | EXOTIC_CFLAGS = @EXOTIC_CFLAGS@ | ||
197 | EXOTIC_LIBS = @EXOTIC_LIBS@ | ||
198 | FGREP = @FGREP@ | ||
199 | GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ | ||
200 | GLIB_CFLAGS = @GLIB_CFLAGS@ | ||
201 | GLIB_LIBS = @GLIB_LIBS@ | ||
202 | GMSGFMT = @GMSGFMT@ | ||
203 | GMSGFMT_015 = @GMSGFMT_015@ | ||
204 | GREP = @GREP@ | ||
205 | INSTALL = @INSTALL@ | ||
206 | INSTALL_DATA = @INSTALL_DATA@ | ||
207 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
208 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
209 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
210 | INTLLIBS = @INTLLIBS@ | ||
211 | INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ | ||
212 | KEYSYMDEFS = @KEYSYMDEFS@ | ||
213 | LD = @LD@ | ||
214 | LDFLAGS = @LDFLAGS@ | ||
215 | LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ | ||
216 | LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ | ||
217 | LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ | ||
218 | LIBICONV = @LIBICONV@ | ||
219 | LIBINTL = @LIBINTL@ | ||
220 | LIBOBJS = @LIBOBJS@ | ||
221 | LIBS = @LIBS@ | ||
222 | LIBTOOL = @LIBTOOL@ | ||
223 | LIPO = @LIPO@ | ||
224 | LN_S = @LN_S@ | ||
225 | LTLIBICONV = @LTLIBICONV@ | ||
226 | LTLIBINTL = @LTLIBINTL@ | ||
227 | LTLIBOBJS = @LTLIBOBJS@ | ||
228 | MAKEINFO = @MAKEINFO@ | ||
229 | MKDIR_P = @MKDIR_P@ | ||
230 | MSGFMT = @MSGFMT@ | ||
231 | MSGFMT_015 = @MSGFMT_015@ | ||
232 | MSGMERGE = @MSGMERGE@ | ||
233 | NM = @NM@ | ||
234 | NMEDIT = @NMEDIT@ | ||
235 | OBJC = @OBJC@ | ||
236 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
237 | OBJCFLAGS = @OBJCFLAGS@ | ||
238 | OBJDUMP = @OBJDUMP@ | ||
239 | OBJEXT = @OBJEXT@ | ||
240 | OTOOL = @OTOOL@ | ||
241 | OTOOL64 = @OTOOL64@ | ||
242 | PACKAGE = @PACKAGE@ | ||
243 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
244 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
245 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
246 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
247 | PACKAGE_URL = @PACKAGE_URL@ | ||
248 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
249 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
250 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
251 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
252 | PKG_CONFIG = @PKG_CONFIG@ | ||
253 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
254 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
255 | POSUB = @POSUB@ | ||
256 | RANLIB = @RANLIB@ | ||
257 | SCIM_CFLAGS = @SCIM_CFLAGS@ | ||
258 | SCIM_LIBS = @SCIM_LIBS@ | ||
259 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
260 | SDL_CONFIG = @SDL_CONFIG@ | ||
261 | SDL_LIBS = @SDL_LIBS@ | ||
262 | SED = @SED@ | ||
263 | SET_MAKE = @SET_MAKE@ | ||
264 | SHELL = @SHELL@ | ||
265 | SHM_OPEN_LIBS = @SHM_OPEN_LIBS@ | ||
266 | SSL_CFLAGS = @SSL_CFLAGS@ | ||
267 | SSL_LIBS = @SSL_LIBS@ | ||
268 | STRIP = @STRIP@ | ||
269 | TLS2_CFLAGS = @TLS2_CFLAGS@ | ||
270 | TLS2_LIBS = @TLS2_LIBS@ | ||
271 | TLS_CFLAGS = @TLS_CFLAGS@ | ||
272 | TLS_LIBS = @TLS_LIBS@ | ||
273 | TSLIB_CFLAGS = @TSLIB_CFLAGS@ | ||
274 | TSLIB_LIBS = @TSLIB_LIBS@ | ||
275 | USE_NLS = @USE_NLS@ | ||
276 | VERSION = @VERSION@ | ||
277 | VMAJ = @VMAJ@ | ||
278 | WAYLAND_CFLAGS = @WAYLAND_CFLAGS@ | ||
279 | WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@ | ||
280 | WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@ | ||
281 | WAYLAND_LIBS = @WAYLAND_LIBS@ | ||
282 | WIN32_CFLAGS = @WIN32_CFLAGS@ | ||
283 | WIN32_CPPFLAGS = @WIN32_CPPFLAGS@ | ||
284 | WIN32_LIBS = @WIN32_LIBS@ | ||
285 | XCB_COMPOSITE_CFLAGS = @XCB_COMPOSITE_CFLAGS@ | ||
286 | XCB_COMPOSITE_LIBS = @XCB_COMPOSITE_LIBS@ | ||
287 | XCB_CURSOR_CFLAGS = @XCB_CURSOR_CFLAGS@ | ||
288 | XCB_CURSOR_LIBS = @XCB_CURSOR_LIBS@ | ||
289 | XCB_DAMAGE_CFLAGS = @XCB_DAMAGE_CFLAGS@ | ||
290 | XCB_DAMAGE_LIBS = @XCB_DAMAGE_LIBS@ | ||
291 | XCB_DPMS_CFLAGS = @XCB_DPMS_CFLAGS@ | ||
292 | XCB_DPMS_LIBS = @XCB_DPMS_LIBS@ | ||
293 | XCB_RANDR_CFLAGS = @XCB_RANDR_CFLAGS@ | ||
294 | XCB_RANDR_LIBS = @XCB_RANDR_LIBS@ | ||
295 | XCB_RENDER_CFLAGS = @XCB_RENDER_CFLAGS@ | ||
296 | XCB_RENDER_LIBS = @XCB_RENDER_LIBS@ | ||
297 | XCB_SCREENSAVER_CFLAGS = @XCB_SCREENSAVER_CFLAGS@ | ||
298 | XCB_SCREENSAVER_LIBS = @XCB_SCREENSAVER_LIBS@ | ||
299 | XCB_SHAPE_CFLAGS = @XCB_SHAPE_CFLAGS@ | ||
300 | XCB_SHAPE_LIBS = @XCB_SHAPE_LIBS@ | ||
301 | XCB_SYNC_CFLAGS = @XCB_SYNC_CFLAGS@ | ||
302 | XCB_SYNC_LIBS = @XCB_SYNC_LIBS@ | ||
303 | XCB_X11_CFLAGS = @XCB_X11_CFLAGS@ | ||
304 | XCB_X11_LIBS = @XCB_X11_LIBS@ | ||
305 | XCB_XFIXES_CFLAGS = @XCB_XFIXES_CFLAGS@ | ||
306 | XCB_XFIXES_LIBS = @XCB_XFIXES_LIBS@ | ||
307 | XCB_XGESTURE_CFLAGS = @XCB_XGESTURE_CFLAGS@ | ||
308 | XCB_XGESTURE_LIBS = @XCB_XGESTURE_LIBS@ | ||
309 | XCB_XINERAMA_CFLAGS = @XCB_XINERAMA_CFLAGS@ | ||
310 | XCB_XINERAMA_LIBS = @XCB_XINERAMA_LIBS@ | ||
311 | XCB_XINPUT_CFLAGS = @XCB_XINPUT_CFLAGS@ | ||
312 | XCB_XINPUT_LIBS = @XCB_XINPUT_LIBS@ | ||
313 | XCB_XPRINT_CFLAGS = @XCB_XPRINT_CFLAGS@ | ||
314 | XCB_XPRINT_LIBS = @XCB_XPRINT_LIBS@ | ||
315 | XCB_XTEST_CFLAGS = @XCB_XTEST_CFLAGS@ | ||
316 | XCB_XTEST_LIBS = @XCB_XTEST_LIBS@ | ||
317 | XCOMPOSITE_CFLAGS = @XCOMPOSITE_CFLAGS@ | ||
318 | XCOMPOSITE_LIBS = @XCOMPOSITE_LIBS@ | ||
319 | XDAMAGE_CFLAGS = @XDAMAGE_CFLAGS@ | ||
320 | XDAMAGE_LIBS = @XDAMAGE_LIBS@ | ||
321 | XDPMS_CFLAGS = @XDPMS_CFLAGS@ | ||
322 | XDPMS_LIBS = @XDPMS_LIBS@ | ||
323 | XFIXES_CFLAGS = @XFIXES_CFLAGS@ | ||
324 | XFIXES_LIBS = @XFIXES_LIBS@ | ||
325 | XGESTURE_CFLAGS = @XGESTURE_CFLAGS@ | ||
326 | XGESTURE_LIBS = @XGESTURE_LIBS@ | ||
327 | XGETTEXT = @XGETTEXT@ | ||
328 | XGETTEXT_015 = @XGETTEXT_015@ | ||
329 | XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ | ||
330 | XI2_CFLAGS = @XI2_CFLAGS@ | ||
331 | XI2_LIBS = @XI2_LIBS@ | ||
332 | XINERAMA_CFLAGS = @XINERAMA_CFLAGS@ | ||
333 | XINERAMA_LIBS = @XINERAMA_LIBS@ | ||
334 | XKB_CFLAGS = @XKB_CFLAGS@ | ||
335 | XKB_LIBS = @XKB_LIBS@ | ||
336 | XMKMF = @XMKMF@ | ||
337 | XPRINT_CFLAGS = @XPRINT_CFLAGS@ | ||
338 | XPRINT_LIBS = @XPRINT_LIBS@ | ||
339 | XRANDR_CFLAGS = @XRANDR_CFLAGS@ | ||
340 | XRANDR_LIBS = @XRANDR_LIBS@ | ||
341 | XRENDER_CFLAGS = @XRENDER_CFLAGS@ | ||
342 | XRENDER_LIBS = @XRENDER_LIBS@ | ||
343 | XSS_CFLAGS = @XSS_CFLAGS@ | ||
344 | XSS_LIBS = @XSS_LIBS@ | ||
345 | XTEST_CFLAGS = @XTEST_CFLAGS@ | ||
346 | XTEST_LIBS = @XTEST_LIBS@ | ||
347 | X_CFLAGS = @X_CFLAGS@ | ||
348 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
349 | X_LIBS = @X_LIBS@ | ||
350 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
351 | Xcursor_cflags = @Xcursor_cflags@ | ||
352 | Xcursor_libs = @Xcursor_libs@ | ||
353 | abs_builddir = @abs_builddir@ | ||
354 | abs_srcdir = @abs_srcdir@ | ||
355 | abs_top_builddir = @abs_top_builddir@ | ||
356 | abs_top_srcdir = @abs_top_srcdir@ | ||
357 | ac_ct_CC = @ac_ct_CC@ | ||
358 | ac_ct_CXX = @ac_ct_CXX@ | ||
359 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
360 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
361 | am__include = @am__include@ | ||
362 | am__leading_dot = @am__leading_dot@ | ||
363 | am__quote = @am__quote@ | ||
364 | am__tar = @am__tar@ | ||
365 | am__untar = @am__untar@ | ||
366 | bindir = @bindir@ | ||
367 | build = @build@ | ||
368 | build_alias = @build_alias@ | ||
369 | build_cpu = @build_cpu@ | ||
370 | build_os = @build_os@ | ||
371 | build_vendor = @build_vendor@ | ||
372 | builddir = @builddir@ | ||
373 | cocoa_ldflags = @cocoa_ldflags@ | ||
374 | datadir = @datadir@ | ||
375 | datarootdir = @datarootdir@ | ||
376 | dlopen_libs = @dlopen_libs@ | ||
377 | docdir = @docdir@ | ||
378 | dvidir = @dvidir@ | ||
379 | ecore_cocoa_cflags = @ecore_cocoa_cflags@ | ||
380 | ecore_cocoa_libs = @ecore_cocoa_libs@ | ||
381 | ecore_con_cflags = @ecore_con_cflags@ | ||
382 | ecore_con_libs = @ecore_con_libs@ | ||
383 | ecore_directfb_cflags = @ecore_directfb_cflags@ | ||
384 | ecore_directfb_libs = @ecore_directfb_libs@ | ||
385 | ecore_evas_cflags = @ecore_evas_cflags@ | ||
386 | ecore_evas_libs = @ecore_evas_libs@ | ||
387 | ecore_fb_cflags = @ecore_fb_cflags@ | ||
388 | ecore_fb_libs = @ecore_fb_libs@ | ||
389 | ecore_file_cflags = @ecore_file_cflags@ | ||
390 | ecore_file_libs = @ecore_file_libs@ | ||
391 | ecore_imf_cflags = @ecore_imf_cflags@ | ||
392 | ecore_imf_evas_cflags = @ecore_imf_evas_cflags@ | ||
393 | ecore_imf_evas_libs = @ecore_imf_evas_libs@ | ||
394 | ecore_imf_libs = @ecore_imf_libs@ | ||
395 | ecore_imf_scim_cflags = @ecore_imf_scim_cflags@ | ||
396 | ecore_imf_scim_libs = @ecore_imf_scim_libs@ | ||
397 | ecore_imf_xim_cflags = @ecore_imf_xim_cflags@ | ||
398 | ecore_imf_xim_libs = @ecore_imf_xim_libs@ | ||
399 | ecore_input_cflags = @ecore_input_cflags@ | ||
400 | ecore_input_evas_cflags = @ecore_input_evas_cflags@ | ||
401 | ecore_input_evas_libs = @ecore_input_evas_libs@ | ||
402 | ecore_input_libs = @ecore_input_libs@ | ||
403 | ecore_ipc_cflags = @ecore_ipc_cflags@ | ||
404 | ecore_ipc_libs = @ecore_ipc_libs@ | ||
405 | ecore_psl1ght_cflags = @ecore_psl1ght_cflags@ | ||
406 | ecore_psl1ght_libs = @ecore_psl1ght_libs@ | ||
407 | ecore_sdl_cflags = @ecore_sdl_cflags@ | ||
408 | ecore_sdl_libs = @ecore_sdl_libs@ | ||
409 | ecore_wayland_cflags = @ecore_wayland_cflags@ | ||
410 | ecore_wayland_libs = @ecore_wayland_libs@ | ||
411 | ecore_win32_cflags = @ecore_win32_cflags@ | ||
412 | ecore_win32_libs = @ecore_win32_libs@ | ||
413 | ecore_wince_cflags = @ecore_wince_cflags@ | ||
414 | ecore_wince_libs = @ecore_wince_libs@ | ||
415 | ecore_x_cflags = @ecore_x_cflags@ | ||
416 | ecore_x_libs = @ecore_x_libs@ | ||
417 | ecore_x_libs_private = @ecore_x_libs_private@ | ||
418 | efl_doxygen = @efl_doxygen@ | ||
419 | efl_have_doxygen = @efl_have_doxygen@ | ||
420 | exec_prefix = @exec_prefix@ | ||
421 | have_ecore_x_xcb_define = @have_ecore_x_xcb_define@ | ||
422 | host = @host@ | ||
423 | host_alias = @host_alias@ | ||
424 | host_cpu = @host_cpu@ | ||
425 | host_os = @host_os@ | ||
426 | host_vendor = @host_vendor@ | ||
427 | htmldir = @htmldir@ | ||
428 | includedir = @includedir@ | ||
429 | infodir = @infodir@ | ||
430 | install_sh = @install_sh@ | ||
431 | libdir = @libdir@ | ||
432 | libexecdir = @libexecdir@ | ||
433 | localedir = @localedir@ | ||
434 | localstatedir = @localstatedir@ | ||
435 | lt_ECHO = @lt_ECHO@ | ||
436 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
437 | mandir = @mandir@ | ||
438 | mkdir_p = @mkdir_p@ | ||
439 | oldincludedir = @oldincludedir@ | ||
440 | pdfdir = @pdfdir@ | ||
441 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
442 | prefix = @prefix@ | ||
443 | program_transform_name = @program_transform_name@ | ||
444 | psdir = @psdir@ | ||
445 | release_info = @release_info@ | ||
446 | requirements_ecore = @requirements_ecore@ | ||
447 | requirements_ecore_cocoa = @requirements_ecore_cocoa@ | ||
448 | requirements_ecore_con = @requirements_ecore_con@ | ||
449 | requirements_ecore_directfb = @requirements_ecore_directfb@ | ||
450 | requirements_ecore_evas = @requirements_ecore_evas@ | ||
451 | requirements_ecore_fb = @requirements_ecore_fb@ | ||
452 | requirements_ecore_file = @requirements_ecore_file@ | ||
453 | requirements_ecore_imf = @requirements_ecore_imf@ | ||
454 | requirements_ecore_imf_evas = @requirements_ecore_imf_evas@ | ||
455 | requirements_ecore_imf_scim = @requirements_ecore_imf_scim@ | ||
456 | requirements_ecore_imf_xim = @requirements_ecore_imf_xim@ | ||
457 | requirements_ecore_input = @requirements_ecore_input@ | ||
458 | requirements_ecore_input_evas = @requirements_ecore_input_evas@ | ||
459 | requirements_ecore_ipc = @requirements_ecore_ipc@ | ||
460 | requirements_ecore_psl1ght = @requirements_ecore_psl1ght@ | ||
461 | requirements_ecore_sdl = @requirements_ecore_sdl@ | ||
462 | requirements_ecore_wayland = @requirements_ecore_wayland@ | ||
463 | requirements_ecore_win32 = @requirements_ecore_win32@ | ||
464 | requirements_ecore_wince = @requirements_ecore_wince@ | ||
465 | requirements_ecore_x = @requirements_ecore_x@ | ||
466 | rt_libs = @rt_libs@ | ||
467 | sbindir = @sbindir@ | ||
468 | sharedstatedir = @sharedstatedir@ | ||
469 | srcdir = @srcdir@ | ||
470 | sysconfdir = @sysconfdir@ | ||
471 | target_alias = @target_alias@ | ||
472 | top_build_prefix = @top_build_prefix@ | ||
473 | top_builddir = @top_builddir@ | ||
474 | top_srcdir = @top_srcdir@ | ||
475 | version_info = @version_info@ | ||
476 | x_cflags = @x_cflags@ | ||
477 | x_includes = @x_includes@ | ||
478 | x_libs = @x_libs@ | ||
479 | MAINTAINERCLEANFILES = Makefile.in | ||
480 | AM_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 | |||
491 | lib_LTLIBRARIES = libecore_psl1ght.la | ||
492 | includes_HEADERS = Ecore_Psl1ght.h | ||
493 | includesdir = $(includedir)/ecore-@VMAJ@ | ||
494 | libecore_psl1ght_la_SOURCES = \ | ||
495 | ecore_psl1ght.c \ | ||
496 | moveutil.c \ | ||
497 | spursutil.c | ||
498 | |||
499 | libecore_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 | |||
504 | libecore_psl1ght_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -version-info @version_info@ @release_info@ | ||
505 | EXTRA_DIST = Ecore_Psl1ght_Keys.h ecore_psl1ght_private.h | ||
506 | all: 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 | ||
523 | Makefile: $(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): | ||
540 | install-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 | |||
554 | uninstall-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 | |||
563 | clean-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 | ||
571 | libecore_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 | |||
574 | mostlyclean-compile: | ||
575 | -rm -f *.$(OBJEXT) | ||
576 | |||
577 | distclean-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 | |||
608 | mostlyclean-libtool: | ||
609 | -rm -f *.lo | ||
610 | |||
611 | clean-libtool: | ||
612 | -rm -rf .libs _libs | ||
613 | install-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 | |||
626 | uninstall-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 | |||
634 | ID: $(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 | ||
642 | tags: TAGS | ||
643 | |||
644 | TAGS: $(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 | ||
665 | ctags: CTAGS | ||
666 | CTAGS: $(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 | |||
678 | GTAGS: | ||
679 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
680 | && $(am__cd) $(top_srcdir) \ | ||
681 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
682 | |||
683 | distclean-tags: | ||
684 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
685 | |||
686 | distdir: $(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 | ||
716 | check-am: all-am | ||
717 | check: check-am | ||
718 | all-am: Makefile $(LTLIBRARIES) $(HEADERS) | ||
719 | installdirs: | ||
720 | for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includesdir)"; do \ | ||
721 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
722 | done | ||
723 | install: install-am | ||
724 | install-exec: install-exec-am | ||
725 | install-data: install-data-am | ||
726 | uninstall: uninstall-am | ||
727 | |||
728 | install-am: all-am | ||
729 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
730 | |||
731 | installcheck: installcheck-am | ||
732 | install-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 | ||
737 | mostlyclean-generic: | ||
738 | |||
739 | clean-generic: | ||
740 | |||
741 | distclean-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 | |||
745 | maintainer-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) | ||
749 | clean: clean-am | ||
750 | |||
751 | clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ | ||
752 | mostlyclean-am | ||
753 | |||
754 | distclean: distclean-am | ||
755 | -rm -rf ./$(DEPDIR) | ||
756 | -rm -f Makefile | ||
757 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
758 | distclean-tags | ||
759 | |||
760 | dvi: dvi-am | ||
761 | |||
762 | dvi-am: | ||
763 | |||
764 | html: html-am | ||
765 | |||
766 | html-am: | ||
767 | |||
768 | info: info-am | ||
769 | |||
770 | info-am: | ||
771 | |||
772 | install-data-am: install-includesHEADERS | ||
773 | |||
774 | install-dvi: install-dvi-am | ||
775 | |||
776 | install-dvi-am: | ||
777 | |||
778 | install-exec-am: install-libLTLIBRARIES | ||
779 | |||
780 | install-html: install-html-am | ||
781 | |||
782 | install-html-am: | ||
783 | |||
784 | install-info: install-info-am | ||
785 | |||
786 | install-info-am: | ||
787 | |||
788 | install-man: | ||
789 | |||
790 | install-pdf: install-pdf-am | ||
791 | |||
792 | install-pdf-am: | ||
793 | |||
794 | install-ps: install-ps-am | ||
795 | |||
796 | install-ps-am: | ||
797 | |||
798 | installcheck-am: | ||
799 | |||
800 | maintainer-clean: maintainer-clean-am | ||
801 | -rm -rf ./$(DEPDIR) | ||
802 | -rm -f Makefile | ||
803 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
804 | |||
805 | mostlyclean: mostlyclean-am | ||
806 | |||
807 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
808 | mostlyclean-libtool | ||
809 | |||
810 | pdf: pdf-am | ||
811 | |||
812 | pdf-am: | ||
813 | |||
814 | ps: ps-am | ||
815 | |||
816 | ps-am: | ||
817 | |||
818 | uninstall-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 */ | ||
26 | SYS_PROCESS_PARAM(1001, 0x100000); | ||
27 | |||
28 | int _ecore_psl1ght_log_dom = -1; | ||
29 | |||
30 | EAPI int ECORE_PSL1GHT_EVENT_KEY_MODIFIERS = 0; | ||
31 | EAPI int ECORE_PSL1GHT_EVENT_GOT_FOCUS = 0; | ||
32 | EAPI int ECORE_PSL1GHT_EVENT_LOST_FOCUS = 0; | ||
33 | EAPI int ECORE_PSL1GHT_EVENT_EXPOSE = 0; | ||
34 | EAPI int ECORE_PSL1GHT_EVENT_QUIT = 0; | ||
35 | |||
36 | static int _ecore_psl1ght_init_count = 0; | ||
37 | static int window_width = 0; | ||
38 | static int window_height = 0; | ||
39 | /* Mouse support */ | ||
40 | static int mouse_connected = FALSE; | ||
41 | static u8 mouse_buttons = 0; | ||
42 | static int mouse_x = 0; | ||
43 | static int mouse_y = 0; | ||
44 | /* Keyboard support */ | ||
45 | static int keyboard_connected = FALSE; | ||
46 | static KbLed keyboard_leds = {{0}}; | ||
47 | static KbMkey keyboard_mods = {{0}}; | ||
48 | static u16 keyboard_old_key = 0; | ||
49 | /* Pad support */ | ||
50 | static padData pad_data; | ||
51 | static padData old_pad_data = {0}; | ||
52 | static int pad_old_x = 0; | ||
53 | static int pad_old_o = 0; | ||
54 | /* Move support */ | ||
55 | static int move_connected = FALSE; | ||
56 | static moveContext *move_context = NULL; | ||
57 | u16 move_buttons = 0; | ||
58 | |||
59 | static 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 | */ | ||
74 | EAPI int | ||
75 | ecore_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 | */ | ||
167 | EAPI int | ||
168 | ecore_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 | |||
200 | static 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 | |||
207 | static 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 | |||
235 | static 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 | |||
321 | static void | ||
322 | unicodeToUtf8(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 | |||
345 | static 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 | |||
380 | static 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 | |||
412 | static 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 | |||
446 | static 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 | |||
464 | static 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 | |||
490 | static 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 | |||
572 | static 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 | |||
632 | static 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 | |||
700 | static 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 | |||
771 | static void | ||
772 | xmb_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 | |||
794 | EAPI void | ||
795 | ecore_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 | |||
806 | EAPI void | ||
807 | ecore_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 | |||
815 | EAPI void | ||
816 | ecore_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 | |||
834 | EAPI void | ||
835 | ecore_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 | |||
4 | extern 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 | |||
14 | u16 oldGemPad = 0; | ||
15 | u16 newGemPad = 0; | ||
16 | u16 newGemAnalogT = 0; | ||
17 | |||
18 | static void | ||
19 | endCamera(moveContext *context) | ||
20 | { | ||
21 | cameraStop (0); | ||
22 | |||
23 | cameraClose (0); | ||
24 | cameraEnd (); | ||
25 | |||
26 | sysMemContainerDestroy (context->camInfo.container); | ||
27 | } | ||
28 | |||
29 | static int | ||
30 | initCamera(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 | |||
84 | error: | ||
85 | if (context->camInfo.container) | ||
86 | sysMemContainerDestroy (context->camInfo.container); | ||
87 | return ret; | ||
88 | } | ||
89 | |||
90 | static int | ||
91 | readCamera(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 | |||
130 | moveContext * | ||
131 | initMove() | ||
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 | |||
178 | error: | ||
179 | if (spurs) | ||
180 | endSpurs (spurs); | ||
181 | if (context) | ||
182 | free (context); | ||
183 | return NULL; | ||
184 | } | ||
185 | |||
186 | void | ||
187 | endMove(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 | |||
199 | int | ||
200 | processMove(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 | |||
235 | void | ||
236 | moveGet3DPosition(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 | |||
6 | Spurs * | ||
7 | initSpurs(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 | |||
50 | error: | ||
51 | if (spurs) | ||
52 | free (spurs); | ||
53 | return NULL; | ||
54 | } | ||
55 | |||
56 | void | ||
57 | endSpurs(Spurs *spurs) | ||
58 | { | ||
59 | spursFinalize (spurs); | ||
60 | free (spurs); | ||
61 | } | ||
62 | |||