Unexpected-Keyboard/srcs/juloo.keyboard2
Jules Aguillon 0f11a88418
More precise and faster spacebar slider (#593)
* Make slider speed independent from swipe distance

Swipe distances other than the default resulted in a slider that were
not easy to control.

* refactor: Add class Pointers.Sliding

It holds the states and the code needed to make the slider work.
'Pointer.sliding' is set to [null] when sliding is not in progress.

The implementation is changed not to depend on [downX] and [dx] but
instead use the pointer's [x] coordinate directly.

* Move the cursor further for faster slides

In sliding mode, compute the speed of the pointer and use it to increase
at which the cursor moves.

* refactor: Separate kind for cursor movement keys

This allows to define a key that moves the cursor more than one position
at a time.

This will be used to avoid lag during fast slider movements.

* Reduce lag when sliding quickly on the spacebar

Avoid sending key events in a loop while sliding quickly in a cursor
movement key. Key of kind Cursor_move are "multiplied", meaning a single
key event represents a movement of more than one position, reducing the
number of key events sent.
This is only for cursor move keys.
2024-05-02 19:31:48 +02:00
..
prefs Allow to remove the compose key in the settings 2024-02-17 23:28:31 +01:00
Autocapitalisation.java Refactor: New namespace for preference classes 2024-01-13 20:59:05 +01:00
ComposeKey.java refactor: Implement Compose without global state 2024-03-18 01:00:22 +01:00
ComposeKeyData.java compose: Add X11 compose sequences 2024-02-17 23:28:31 +01:00
Config.java More precise and faster spacebar slider (#593) 2024-05-02 19:31:48 +02:00
CustomLayoutEditDialog.java prefs: Report errors while editing custom layouts 2023-12-17 11:58:41 +01:00
DirectBootAwarePreferences.java Fix various linter warnings 2024-02-10 18:10:49 +01:00
Emoji.java Refactor: Use enum values in KeyValue.Kind 2022-11-13 15:19:50 +01:00
EmojiGridView.java Improve emoji pane layout 2022-12-11 16:26:50 +01:00
EmojiGroupButtonsBar.java Improve emoji pane layout 2022-12-11 16:26:50 +01:00
ExtraKeys.java Refactor: New namespace for preference classes 2024-01-13 20:59:05 +01:00
Keyboard2.java Compose key 2024-02-17 23:28:31 +01:00
Keyboard2View.java refactor: Apply the modmap in KeyModifier 2024-04-01 23:01:21 +02:00
KeyboardData.java allow for <fn ...> in <modmap> (#626) 2024-05-02 12:09:39 +02:00
KeyEventHandler.java More precise and faster spacebar slider (#593) 2024-05-02 19:31:48 +02:00
KeyModifier.java allow for <fn ...> in <modmap> (#626) 2024-05-02 12:09:39 +02:00
KeyValue.java More precise and faster spacebar slider (#593) 2024-05-02 19:31:48 +02:00
LauncherActivity.java Fix compatibility with Android 3.0 2024-02-10 17:33:42 +01:00
Logs.java Migrate layouts preferences 2023-08-16 12:21:40 +02:00
Pointers.java More precise and faster spacebar slider (#593) 2024-05-02 19:31:48 +02:00
SettingsActivity.java Light and dark themes for the launcher and settings 2024-01-20 22:37:51 +01:00
Theme.java compose: Grey out keys that are not in sequence 2024-02-17 23:28:31 +01:00
Utils.java Fix various linter warnings 2024-02-10 18:10:49 +01:00
VibratorCompat.java Drop support for Android versions below 3.0 2024-02-10 17:24:15 +01:00
VoiceImeSwitcher.java Fix various linter warnings 2024-02-10 18:10:49 +01:00