Commit Graph

34 Commits (2a2a0828c8be75c51ad12f2f070704d9902fc879)

Author SHA1 Message Date
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.
12 years ago
Qingping Hou 3306346dba use debug to print debug info 12 years ago
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
12 years ago
traycold 6c9ec8c896 refactoring for display help page 12 years ago
Qingping Hou cafa86a5bd fix condition in saveWaitForEvent()
add newline escape sequence.

close #106
12 years ago
HW 57d769e0ae added wrapper function for input.waitForEvent that retries on EINTR 12 years ago
Qingping Hou c41e3e75a3 add: demo for fixing #85, #86 12 years ago
Dobrica Pavlinusic 71c36064e2 added K3 left page keys for emulator on F3 and F4 12 years ago
traycold bfcad367bb using font module for getting fonts (commit f95231d789)
renamed function names using camelCase (issue #62)
12 years ago
traycold 943b511b7c complete implementation of issue #55
created a help page
12 years ago
traycold abf9696221 Merge branch 'master' of git://github.com/hwhw/kindlepdfviewer.git
Conflicts:
	reader.lua
	unireader.lua
12 years ago
traycold 3fbb39fc05 Proof of concept for issue #55.
Still to be completed.
12 years ago
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.
12 years ago
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.
12 years ago
Qingping Hou 3dbf9877bc add: 90 degree rotation support
demo for issue #51
12 years ago
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)
12 years ago
Dobrica Pavlinusic b8cc9c9a36 exit reader on HOME key 12 years ago
Qingping Hou 6614bbe33d mod: handle shift and alt key events in adjustKeyEvents() 12 years ago
Qingping Hou aa5806accd Merge branch 'master' of https://github.com/hwhw/kindlepdfviewer
Conflicts:
	pdfreader.lua
12 years ago
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.
12 years ago
Dobrica Pavlinusic 9a90b4d599 move FW_PRESS to End in emulation 12 years ago
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.
12 years ago
Qingping Hou 29a9996fb2 mod: inputbox finished 12 years ago
Qingping Hou 3bc71354ed mod: add KEY_DEL for EMU mode 12 years ago
Qingping Hou 8fdb0a4c3e add: demo for inputbox 12 years ago
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.
12 years ago
Qingping Hou 4b93d2c71b add: F key code in EMU mode 12 years ago
Dobrica Pavlinusic c2207f0e67 rotate page using J and K keys 13 years ago
HW 5e62e3e4af file mode fixes, added shebang to rendertext example script 13 years ago
HW a86352dbc4 added enter key for SDL/emu mode 13 years ago
Dobrica Pavlinusic 04087c072f added altmode for smaller pans and zooms 13 years ago
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
13 years ago
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
13 years ago
HW a07ea2f8b8 factored out key config and tilecache 13 years ago