2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
Commit Graph

37 Commits

Author SHA1 Message Date
Qingping Hou
7ab59e9a5c add usb charging events
for issue #127
2012-06-07 22:00:09 +08:00
HW
0d12ff70cd rename debug() to Debug() to stop clashing with the debug submodule from Lua 2012-06-04 00:49:23 +02:00
HW
054c63704c Added code for KEY_LPGFWD to KDX key list for K2 compatibility 2012-06-03 01:06:43 +02:00
Qingping Hou
219aa74e74 change keycode for KEY_LPG{FWD,BCK} in emu mode
KEY_LPGFWD now binds to F7 and KEY_LPGBCK to F6.

you will get a interesting result when testing
alt combo with previous keycode.
2012-04-20 10:16:32 +08:00
Qingping Hou
3306346dba use debug to print debug info 2012-04-19 00:16:49 +08:00
traycold
02dd9b023f Merge remote branch 'hwhw/master'
* hwhw/master: (183 commits)
  show infomessage on document open
  use InfoMessage for empty TOC, jump history and highlights
  copy resources dir on customupdate
  add resource: info icon
  display document open error message
  added infomessage dialog implementation
  bugfix, removed old test constant
  Added widget abstraction framework
  added interface to get blitbuffers from JPEG/PNG files
  fix typo
  added reading of pan_margin settings
  fix full screen refresh command, close #99
  add: sleep and usleep in util module
  fix: add back KEY_FW{LEFT,RIGHT} commands to NumInputBox
  reverted removal of last-doc shortcut, introduced framework restart
  kill our own child process. not quite finished.
  added line spacing setting for crereader
  remove page:getPageText debug dump to improve performance on device
  remove page:getPageText debug dump to improve performance on device
  display crash.log on error
  ...

Conflicts:
	ft.c
	helppage.lua
	inputbox.lua
	rendertext.lua
	rendertext_example.lua
	unireader.lua
2012-04-16 00:08:19 +02:00
traycold
6c9ec8c896 refactoring for display help page 2012-04-15 16:07:39 +02:00
Qingping Hou
cafa86a5bd fix condition in saveWaitForEvent()
add newline escape sequence.

close #106
2012-04-13 15:19:42 +08:00
HW
57d769e0ae added wrapper function for input.waitForEvent that retries on EINTR 2012-04-12 21:00:44 +02:00
Qingping Hou
c41e3e75a3 add: demo for fixing #85, #86 2012-04-06 13:51:37 +08:00
Dobrica Pavlinusic
71c36064e2 added K3 left page keys for emulator on F3 and F4 2012-03-27 18:31:41 +02:00
traycold
bfcad367bb using font module for getting fonts (commit f95231d789)
renamed function names using camelCase (issue #62)
2012-03-20 20:15:24 +01:00
traycold
943b511b7c complete implementation of issue #55
created a help page
2012-03-13 22:51:25 +01:00
traycold
abf9696221 Merge branch 'master' of git://github.com/hwhw/kindlepdfviewer.git
Conflicts:
	reader.lua
	unireader.lua
2012-03-13 22:14:26 +01:00
traycold
3fbb39fc05 Proof of concept for issue #55.
Still to be completed.
2012-03-10 10:28:54 +01:00
Qingping Hou
319826c385 mod: screen rotation implemented by ioctl
Now you get a instance rotate :) With only one bug.
I have to restore to previous rotation state of the
native system after exists. Because the native system
does poll the new rotation state that changed by ioctl.

Currently, I don't know how to force the native system
to detect the changes.
2012-03-09 18:34:56 +08:00
Qingping Hou
d2aaf15dce add: screen.lua
* move rotation mode to global variable, now check rotation
with Screen.cur_rotation_mode

* move screenRotate to screen module so other UIs can use it.
2012-03-09 09:40:46 +08:00
Qingping Hou
3dbf9877bc add: 90 degree rotation support
demo for issue #51
2012-03-08 23:28:16 +08:00
Dobrica Pavlinusic
88d5f578f8 added last row of keyboard for DXG
DXG has bigger screen, so we have to make sure that we don't have more
than 30 options on screen (or we will run out of shortcuts)
2012-03-06 14:37:00 +01:00
Dobrica Pavlinusic
b8cc9c9a36 exit reader on HOME key 2012-03-04 13:06:35 +01:00
Qingping Hou
6614bbe33d mod: handle shift and alt key events in adjustKeyEvents() 2012-03-02 18:38:34 +08:00
Qingping Hou
aa5806accd Merge branch 'master' of https://github.com/hwhw/kindlepdfviewer
Conflicts:
	pdfreader.lua
2012-03-02 13:58:39 +08:00
Qingping Hou
53d4016c64 fix: move shiftmode and altmode to global
now shiftmode and altmode is recoreded in Keys module.  So all the UIs
are sharing these two mode instead of remembering their own. These fix
the bug in UI switchings.

For instance, you use combo 'Alt'+'b' to fire up some menu in pdfreader,
the altmode is set, but the alt key was released after the menu show
up. Then the key release event will only be captured by the menu. So
after you exit from the menu, the altmode is still set in pdfreader,
which is not what we want.
2012-03-02 13:46:15 +08:00
Dobrica Pavlinusic
9a90b4d599 move FW_PRESS to End in emulation 2012-02-29 16:53:40 +01:00
Qingping Hou
417ef640a7 Merge branch 'rotate'
Conflicts:
	filechooser.lua

* merge rotate branch with search branch
* fix font display bug in font menu

not fully tested the new rotation implemention yet.
2012-02-19 15:29:51 +08:00
Qingping Hou
29a9996fb2 mod: inputbox finished 2012-02-18 20:32:38 +08:00
Qingping Hou
3bc71354ed mod: add KEY_DEL for EMU mode 2012-02-18 20:07:28 +08:00
Qingping Hou
8fdb0a4c3e add: demo for inputbox 2012-02-18 18:21:03 +08:00
Qingping Hou
262b8113f7 add: adjustFWKey(code)
adjustFWKey() will change code event for five way keys
according to current rotation mode. Add this to the
input.waitForEvent loop and your UI can navigate properly
in different rotation mode.
2012-02-17 14:52:54 +08:00
Qingping Hou
4b93d2c71b add: F key code in EMU mode 2012-02-16 15:18:28 +08:00
Dobrica Pavlinusic
c2207f0e67 rotate page using J and K keys 2011-12-23 20:48:02 +01:00
HW
5e62e3e4af file mode fixes, added shebang to rendertext example script 2011-12-08 01:25:42 +01:00
HW
a86352dbc4 added enter key for SDL/emu mode 2011-12-08 00:40:44 +01:00
Dobrica Pavlinusic
04087c072f added altmode for smaller pans and zooms 2011-11-26 15:52:20 +01:00
Dobrica Pavlinusic
bdda25f284 move gamma controlls to volume or F11/F12 in emu
Idea is to fee 5way presses for pan/zoom operations in future
2011-11-21 19:30:17 +01:00
HW
a6541596ce added multiple zoom variants
also, added key codes from launchpad sources.
thus, a few constants change their names.
These are the current keys:
PGFWD = next page
PGBCK = previous page

SHIFT+PGFWD = zoom in
SHIFT+PGBCK = zoom out

A = fit to page
S = fit to page width
D = fit to page height

SHIFT+A = fit to page content
SHIFT+S = fit to page content width
SHIFT+D = fit to page content height

SHIFT+FW_UP = Gamma + 0.2
SHIFT+FW_DOWN = Gamma - 0.2
2011-11-21 01:02:03 +01:00
HW
a07ea2f8b8 factored out key config and tilecache 2011-11-20 21:40:56 +01:00