2
0
mirror of https://github.com/koreader/koreader synced 2024-11-13 19:11:25 +00:00
Commit Graph

34 Commits

Author SHA1 Message Date
Qingping Hou
01e8e5e820 correctly report timeout on select timeout 2013-01-06 02:07:57 -05:00
{Qingping,Dave} Hou
da87914cbf Merge pull request #634 from houqp/ges-detect
Touch gesture detection module
2012-11-26 15:20:54 -08:00
chrox
f503e9c2df bugfix: waitForInput should return error when select returns zero 2012-11-26 18:13:00 +08:00
Qingping Hou
d3e0424122 add setTimeOut method in inputevent.lua
adapt all the state machine to use setTimeOut. Now supported gestures
includes tap, double tap and hold.
2012-11-17 13:41:26 -05:00
Qingping Hou
9a4d6d4a2e Merge branch 'new_ui_code' of github.com:houqp/kindlepdfviewer into new_ui_code 2012-11-16 08:22:41 +08:00
Qingping Hou
262d742204 add back waitForInput timeout for emulator 2012-11-16 08:22:23 +08:00
Qingping Hou
263c8bb110 add time subtable to lua inputevent table 2012-11-14 22:12:00 -05:00
Qingping Hou
818043752f refine single tap touch input simulation in input.c 2012-11-11 13:58:00 +08:00
Qingping Hou
ad089c4930 delete unused macro in input.c 2012-11-04 13:43:27 +08:00
Qingping Hou
02d48dee3d use only one process for emu input event emulation
Seems that SDL is not thread-safe, so forking leads to some
strange bugs. Thus I switch back to one process implementaion.
2012-11-04 13:25:04 +08:00
Qingping Hou
9fca67b6cb add back type casting when sending event to lua stack 2012-11-04 11:24:29 +08:00
Qingping Hou
3be08ec515 use fifofile for emu event piping
Using fifofile to pipe event makes it possible for other programs to
feed KPV input events. One use case for this might be automated testing.
2012-11-04 11:18:42 +08:00
Qingping Hou
f2bd4666fc rewrite input module for emulator
In order to use mouse to simulate touch input, we have to
generate multiple events on single SDL mouse click event.
It is every hard to achieve this in original implementaion
so I used pipe to fake a input dev as slider_watcher did.
2012-11-04 10:38:17 +08:00
Qingping Hou
df5ccc9530 add createInputEvent helper function 2012-11-04 02:42:56 +08:00
Qingping Hou
1adc84c2ac rename slider event to fake_events again 2012-10-14 13:50:00 +08:00
NiLuJe
3f945b8d93 We don't need you, either, in EMU... 2012-10-03 12:57:08 -04:00
NiLuJe
e04cb9a66b We don't need those two in EMU ;). 2012-10-03 12:56:57 -04:00
NiLuJe
9f5cd9d021 Actually, no that's wrong, it's not the parent process, it's a fork. 2012-10-02 21:04:24 -04:00
NiLuJe
2572dd0657 Kill a bit of cruft, explain the reasonning behind the kill/traps, and
fix a potential buffering issue eating the first slider event
2012-10-02 21:04:15 -04:00
NiLuJe
7ce8ff58f8 Update the standalone testcase, too. 2012-10-02 20:49:04 -04:00
NiLuJe
1d29b53b84 Kill debug printf 2012-10-02 20:48:57 -04:00
NiLuJe
26e10c6069 Fix input device closing, and fix lipc-wait-event handling (using
popen-noshell from http://code.google.com/p/popen-noshell/)

Conflicts:

	input.c
2012-10-02 20:48:43 -04:00
Kefu Chai
8ce1aef0af remove dependency on <linux/input.h>
* and kill a warning
2012-07-15 02:35:01 +08:00
Qingping Hou
d06f71b3cd fix naming for fake events device 2012-06-23 20:38:20 +08:00
Qingping Hou
219b2d7f30 add usb charging events
for issue #127

Conflicts:
	keys.lua
2012-06-10 12:38:36 +02:00
HW
97589bc9ba have waitForEvent use two separate arguments for s and us 2012-04-23 22:27:30 +02:00
Qingping Hou
b9b772fe25 add SDL WaitEventTime patch to input.c
According to http://bugzilla.libsdl.org/show_bug.cgi?id=684,
this is included in SDL 1.3. But seems that 1.3 is not released
yet, so I added the patch here as workaround.
2012-04-17 14:24:42 +08:00
HW
3022889088 kill our own child process. not quite finished.
we can now kill and wait for the slider watcher subprocess that we spawned.
However, it will have a subprocess itself, the lipc-wait-event process.
That one currently stays alive until it finally sends something.
2012-04-14 01:09:38 +02:00
HW
877ecdfb71 switched slider handling to a fork()ed process 2012-04-09 12:29:13 +02:00
Qingping Hou
c41e3e75a3 add: demo for fixing #85, #86 2012-04-06 13:51:37 +08:00
HW
8869c52c31 fix a Lua 5.0 syntax that was deprecated in 5.1
luaL_reg is now renamed to luaL_Reg. Lua 5.2 does not know about
the old name anymore, Lua 5.1.x had backward compatibility.
2012-03-19 19:11:32 +01:00
HW
11b568f19e fixed included headers 2011-12-08 00:41:17 +01:00
HW
2a789efefb changed/enabled reader device emulation
The sources can now conditionally compile emulation code
for the e-ink framebuffer and input events.
It uses SDL for doing that, so you need this installed
if you want to use emulation (you do not need it if you're
only compiling for the e-ink device).
This allows for rapid testing of new code.
2011-11-16 23:50:00 +01:00
HW
0c24e3c7e0 initial project, basic reader working 2011-11-14 18:30:16 +01:00