Commit Graph

22 Commits (7e26047af44e87b050adb8aca358fa05f160f1ed)

Author SHA1 Message Date
Markismus 7e26047af4 The last code changes resulted in crashes. Now they don't and it the fine tuning is improved.
It changes `steps` in line 13 for better finetuning,
`rate` in line 22 so that it has a nil value for `Kobo_phoenix'
and delta_int in line 48 to the last know working syntax.

Could someone check whether line 22 does result in 3.0 for non-phoenix devices?
10 years ago
chrox 5157a67ce2 code refactoring 10 years ago
chrox 0385374c07 code refactoring 10 years ago
Markismus 175721a185 UPDATE readerfrontlight.lua
Code is added to switch between Kobo Aura (Phoenix) and others.

`ReaderFrontLight`, `self.ges_events` and the `function ReaderFrontLight:onAdjust` are now different for Kobo Aura. This enables me to do a two-fingered-pan over approx 1/4 Screenheight to change from full on to full off.

The difference to the default implementation is that both the `rate` and the `msg` are omitted and the `steps` are different.

FURTHER ROOM FOR IMPROVEMENT: It would be an improvement to get a final message after the two-fingered-pan is done stating the achieved setting.

Signed-off-by: Markismus <zulde.zuldemans@gmail.com>
10 years ago
chrox 4a5c6cdf12 fix intensity field name in powerd 11 years ago
chrox 92b62c907a refactoring frontlight device to more generic power device 11 years ago
HW 2154e7e852 Further refactoring
This should finish the work to make all globals to local variables.
That allows LuaJIT to properly compile things by interning the
references to the relevant parts (rather than looking up globals
all the time which stops a trace).
11 years ago
HW ef111b99c6 Refactored to use strictly locals 11 years ago
Paulo Matias 54636e9407 Add InputText:setText and avoid non-intuitive UI behavior after light toggle 11 years ago
Paulo Matias 81facc2ce9 Refactor min/max handling in BaseFrontLight; use getFrontlight() in ReaderFrontLight for consistency 11 years ago
Paulo Matias 3f3fba2fdf Big refactoring: Device handles frontlight device, ReaderFrontLight now only GUI 11 years ago
Paulo Matias 232d8cd74a Fix multiple ReaderFrontLight instances, i18n issues, and refactor event handling to follow codebase patterns 11 years ago
Giorgio Micotti cea353323e Initial light control widget; final fixes for kobo light 11 years ago
Giorgio Micotti 103133d216 Fix some dumb mistakes, toggle light now works 11 years ago
Qingping Hou 201e63b2b2 fix require error 11 years ago
Giorgio Micotti 70963a0ddc Merge branch 'master' of https://github.com/koreader/koreader 11 years ago
Giorgio Micotti e4b8fc3266 NOT WORKING initial kobo light support. 11 years ago
Paulo Matias f0b352b0e3 Fix multiple crash bugs on GestureDector (with double-finger) and ReaderFrontLight (closes Issue #165) 11 years ago
chrox 313525e961 add cpath in reader.lua 11 years ago
chrox a60cfc4e10 fix occasionally failed lipc invocation 11 years ago
chrox 598772562d bugfix: use ceil to keep index greater than or equal to 1 11 years ago
chrox ed33937af2 add front light intensity adjustment by vertical two_finger_pan 11 years ago