Commit Graph

34 Commits (02ea5f1fbf220f98a2152f2d4143f4d50b391f29)

Author SHA1 Message Date
Qingping Hou 01e8e5e820 correctly report timeout on select timeout 12 years ago
{Qingping,Dave} Hou da87914cbf Merge pull request #634 from houqp/ges-detect
Touch gesture detection module
12 years ago
chrox f503e9c2df bugfix: waitForInput should return error when select returns zero 12 years ago
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.
12 years ago
Qingping Hou 9a4d6d4a2e Merge branch 'new_ui_code' of github.com:houqp/kindlepdfviewer into new_ui_code 12 years ago
Qingping Hou 262d742204 add back waitForInput timeout for emulator 12 years ago
Qingping Hou 263c8bb110 add time subtable to lua inputevent table 12 years ago
Qingping Hou 818043752f refine single tap touch input simulation in input.c 12 years ago
Qingping Hou ad089c4930 delete unused macro in input.c 12 years ago
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.
12 years ago
Qingping Hou 9fca67b6cb add back type casting when sending event to lua stack 12 years ago
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.
12 years ago
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.
12 years ago
Qingping Hou df5ccc9530 add createInputEvent helper function 12 years ago
Qingping Hou 1adc84c2ac rename slider event to fake_events again 12 years ago
NiLuJe 3f945b8d93 We don't need you, either, in EMU... 12 years ago
NiLuJe e04cb9a66b We don't need those two in EMU ;). 12 years ago
NiLuJe 9f5cd9d021 Actually, no that's wrong, it's not the parent process, it's a fork. 12 years ago
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
12 years ago
NiLuJe 7ce8ff58f8 Update the standalone testcase, too. 12 years ago
NiLuJe 1d29b53b84 Kill debug printf 12 years ago
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
12 years ago
Kefu Chai 8ce1aef0af remove dependency on <linux/input.h>
* and kill a warning
12 years ago
Qingping Hou d06f71b3cd fix naming for fake events device 12 years ago
Qingping Hou 219b2d7f30 add usb charging events
for issue #127

Conflicts:
	keys.lua
12 years ago
HW 97589bc9ba have waitForEvent use two separate arguments for s and us 12 years ago
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.
12 years ago
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.
12 years ago
HW 877ecdfb71 switched slider handling to a fork()ed process 12 years ago
Qingping Hou c41e3e75a3 add: demo for fixing #85, #86 12 years ago
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.
12 years ago
HW 11b568f19e fixed included headers 13 years ago
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.
13 years ago
HW 0c24e3c7e0 initial project, basic reader working 13 years ago