mirror of
https://github.com/dessalines/thumb-key.git
synced 2024-09-11 17:05:34 +03:00
Moving from arrays to lists. Running upgraded kotlinter (#229)
This commit is contained in:
parent
173464b776
commit
d654bd57ca
@ -17,10 +17,10 @@ import kotlinx.coroutines.launch
|
||||
@SuppressLint("ViewConstructor")
|
||||
class ComposeKeyboardView(
|
||||
context: Context,
|
||||
private val settingsRepo: AppSettingsRepository
|
||||
private val settingsRepo: AppSettingsRepository,
|
||||
) :
|
||||
AbstractComposeView
|
||||
(context) {
|
||||
(context) {
|
||||
|
||||
@Composable
|
||||
override fun Content() {
|
||||
@ -29,7 +29,7 @@ class ComposeKeyboardView(
|
||||
val ctx = context as IMEService
|
||||
|
||||
ThumbkeyTheme(
|
||||
settings = settings
|
||||
settings = settings,
|
||||
) {
|
||||
KeyboardScreen(
|
||||
settings = settings,
|
||||
@ -60,7 +60,7 @@ class ComposeKeyboardView(
|
||||
val s2 = s.copy(position = nextPosition)
|
||||
settingsRepo.update(s2)
|
||||
}
|
||||
}
|
||||
},
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -3,7 +3,13 @@ package com.dessalines.thumbkey
|
||||
import android.inputmethodservice.InputMethodService
|
||||
import android.view.View
|
||||
import android.view.inputmethod.EditorInfo
|
||||
import androidx.lifecycle.*
|
||||
import androidx.lifecycle.Lifecycle
|
||||
import androidx.lifecycle.LifecycleOwner
|
||||
import androidx.lifecycle.LifecycleRegistry
|
||||
import androidx.lifecycle.ViewModelStore
|
||||
import androidx.lifecycle.ViewModelStoreOwner
|
||||
import androidx.lifecycle.setViewTreeLifecycleOwner
|
||||
import androidx.lifecycle.setViewTreeViewModelStoreOwner
|
||||
import androidx.savedstate.SavedStateRegistry
|
||||
import androidx.savedstate.SavedStateRegistryController
|
||||
import androidx.savedstate.SavedStateRegistryOwner
|
||||
|
@ -49,7 +49,7 @@ class MainActivity : AppCompatActivity() {
|
||||
}
|
||||
val thumbkeySelected = Settings.Secure.getString(
|
||||
ctx.contentResolver,
|
||||
Settings.Secure.DEFAULT_INPUT_METHOD
|
||||
Settings.Secure.DEFAULT_INPUT_METHOD,
|
||||
) == THUMBKEY_IME_NAME
|
||||
|
||||
val startDestination by remember {
|
||||
@ -58,46 +58,46 @@ class MainActivity : AppCompatActivity() {
|
||||
"setup"
|
||||
} else {
|
||||
intent.extras?.getString("startRoute") ?: "settings"
|
||||
}
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
ThumbkeyTheme(
|
||||
settings = settings
|
||||
settings = settings,
|
||||
) {
|
||||
val navController = rememberNavController()
|
||||
|
||||
NavHost(
|
||||
navController = navController,
|
||||
startDestination = startDestination
|
||||
startDestination = startDestination,
|
||||
) {
|
||||
composable(
|
||||
route = "setup"
|
||||
route = "setup",
|
||||
) {
|
||||
SetupActivity(
|
||||
navController = navController,
|
||||
thumbkeyEnabled = thumbkeyEnabled,
|
||||
thumbkeySelected = thumbkeySelected
|
||||
thumbkeySelected = thumbkeySelected,
|
||||
)
|
||||
}
|
||||
composable(route = "settings") {
|
||||
SettingsActivity(
|
||||
navController = navController,
|
||||
thumbkeyEnabled = thumbkeyEnabled,
|
||||
thumbkeySelected = thumbkeySelected
|
||||
thumbkeySelected = thumbkeySelected,
|
||||
)
|
||||
}
|
||||
composable(route = "lookAndFeel") {
|
||||
LookAndFeelActivity(
|
||||
navController = navController,
|
||||
appSettingsViewModel = appSettingsViewModel
|
||||
appSettingsViewModel = appSettingsViewModel,
|
||||
)
|
||||
}
|
||||
composable(
|
||||
route = "about"
|
||||
route = "about",
|
||||
) {
|
||||
AboutActivity(
|
||||
navController = navController
|
||||
navController = navController,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -8,7 +8,15 @@ import androidx.lifecycle.LiveData
|
||||
import androidx.lifecycle.ViewModel
|
||||
import androidx.lifecycle.ViewModelProvider
|
||||
import androidx.lifecycle.viewModelScope
|
||||
import androidx.room.*
|
||||
import androidx.room.ColumnInfo
|
||||
import androidx.room.Dao
|
||||
import androidx.room.Database
|
||||
import androidx.room.Entity
|
||||
import androidx.room.PrimaryKey
|
||||
import androidx.room.Query
|
||||
import androidx.room.Room
|
||||
import androidx.room.RoomDatabase
|
||||
import androidx.room.Update
|
||||
import androidx.room.migration.Migration
|
||||
import androidx.sqlite.db.SupportSQLiteDatabase
|
||||
import kotlinx.coroutines.launch
|
||||
@ -37,89 +45,89 @@ data class AppSettings(
|
||||
@PrimaryKey(autoGenerate = true) val id: Int,
|
||||
@ColumnInfo(
|
||||
name = "key_size",
|
||||
defaultValue = DEFAULT_KEY_SIZE.toString()
|
||||
defaultValue = DEFAULT_KEY_SIZE.toString(),
|
||||
)
|
||||
val keySize: Int,
|
||||
@ColumnInfo(
|
||||
name = "animation_speed",
|
||||
defaultValue = DEFAULT_ANIMATION_SPEED.toString()
|
||||
defaultValue = DEFAULT_ANIMATION_SPEED.toString(),
|
||||
)
|
||||
val animationSpeed: Int,
|
||||
@ColumnInfo(
|
||||
name = "animation_helper_speed",
|
||||
defaultValue = DEFAULT_ANIMATION_HELPER_SPEED.toString()
|
||||
defaultValue = DEFAULT_ANIMATION_HELPER_SPEED.toString(),
|
||||
)
|
||||
val animationHelperSpeed: Int,
|
||||
@ColumnInfo(
|
||||
name = "position",
|
||||
defaultValue = DEFAULT_POSITION.toString()
|
||||
defaultValue = DEFAULT_POSITION.toString(),
|
||||
)
|
||||
val position: Int,
|
||||
@ColumnInfo(
|
||||
name = "auto_capitalize",
|
||||
defaultValue = DEFAULT_AUTO_CAPITALIZE.toString()
|
||||
defaultValue = DEFAULT_AUTO_CAPITALIZE.toString(),
|
||||
)
|
||||
val autoCapitalize: Int,
|
||||
@ColumnInfo(
|
||||
name = "keyboard_layout",
|
||||
defaultValue = DEFAULT_KEYBOARD_LAYOUT.toString()
|
||||
defaultValue = DEFAULT_KEYBOARD_LAYOUT.toString(),
|
||||
)
|
||||
val keyboardLayout: Int,
|
||||
@ColumnInfo(
|
||||
name = "vibrate_on_tap",
|
||||
defaultValue = DEFAULT_VIBRATE_ON_TAP.toString()
|
||||
defaultValue = DEFAULT_VIBRATE_ON_TAP.toString(),
|
||||
)
|
||||
val vibrateOnTap: Int,
|
||||
@ColumnInfo(
|
||||
name = "sound_on_tap",
|
||||
defaultValue = DEFAULT_SOUND_ON_TAP.toString()
|
||||
defaultValue = DEFAULT_SOUND_ON_TAP.toString(),
|
||||
)
|
||||
val soundOnTap: Int,
|
||||
@ColumnInfo(
|
||||
name = "theme",
|
||||
defaultValue = DEFAULT_THEME.toString()
|
||||
defaultValue = DEFAULT_THEME.toString(),
|
||||
)
|
||||
val theme: Int,
|
||||
@ColumnInfo(
|
||||
name = "theme_color",
|
||||
defaultValue = DEFAULT_THEME_COLOR.toString()
|
||||
defaultValue = DEFAULT_THEME_COLOR.toString(),
|
||||
)
|
||||
val themeColor: Int,
|
||||
@ColumnInfo(
|
||||
name = "viewed_changelog",
|
||||
defaultValue = "0"
|
||||
defaultValue = "0",
|
||||
)
|
||||
val viewedChangelog: Int,
|
||||
@ColumnInfo(
|
||||
name = "min_swipe_length",
|
||||
defaultValue = DEFAULT_MIN_SWIPE_LENGTH.toString()
|
||||
defaultValue = DEFAULT_MIN_SWIPE_LENGTH.toString(),
|
||||
)
|
||||
val minSwipeLength: Int,
|
||||
@ColumnInfo(
|
||||
name = "pushup_size",
|
||||
defaultValue = DEFAULT_PUSHUP_SIZE.toString()
|
||||
defaultValue = DEFAULT_PUSHUP_SIZE.toString(),
|
||||
)
|
||||
val pushupSize: Int,
|
||||
@ColumnInfo(
|
||||
name = "hide_letters",
|
||||
defaultValue = DEFAULT_HIDE_LETTERS.toString()
|
||||
defaultValue = DEFAULT_HIDE_LETTERS.toString(),
|
||||
)
|
||||
val hideLetters: Int,
|
||||
@ColumnInfo(
|
||||
name = "keyboard_layouts",
|
||||
defaultValue = "$DEFAULT_KEYBOARD_LAYOUT"
|
||||
defaultValue = "$DEFAULT_KEYBOARD_LAYOUT",
|
||||
)
|
||||
val keyboardLayouts: String,
|
||||
@ColumnInfo(
|
||||
name = "key_borders",
|
||||
defaultValue = DEFAULT_KEY_BORDERS.toString()
|
||||
defaultValue = DEFAULT_KEY_BORDERS.toString(),
|
||||
)
|
||||
val keyBorders: Int,
|
||||
@ColumnInfo(
|
||||
name = "spacebar_multitaps",
|
||||
defaultValue = DEFAULT_SPACEBAR_MULTITAPS.toString()
|
||||
defaultValue = DEFAULT_SPACEBAR_MULTITAPS.toString(),
|
||||
)
|
||||
val spacebarMultiTaps: Int
|
||||
val spacebarMultiTaps: Int,
|
||||
)
|
||||
|
||||
@Dao
|
||||
@ -156,7 +164,7 @@ class AppSettingsRepository(private val appSettingsDao: AppSettingsDao) {
|
||||
val MIGRATION_1_2 = object : Migration(1, 2) {
|
||||
override fun migrate(database: SupportSQLiteDatabase) {
|
||||
database.execSQL(
|
||||
"alter table AppSettings add column min_swipe_length INTEGER NOT NULL default $DEFAULT_MIN_SWIPE_LENGTH"
|
||||
"alter table AppSettings add column min_swipe_length INTEGER NOT NULL default $DEFAULT_MIN_SWIPE_LENGTH",
|
||||
)
|
||||
}
|
||||
}
|
||||
@ -164,7 +172,7 @@ val MIGRATION_1_2 = object : Migration(1, 2) {
|
||||
val MIGRATION_2_3 = object : Migration(2, 3) {
|
||||
override fun migrate(database: SupportSQLiteDatabase) {
|
||||
database.execSQL(
|
||||
"alter table AppSettings add column pushup_size INTEGER NOT NULL default $DEFAULT_PUSHUP_SIZE"
|
||||
"alter table AppSettings add column pushup_size INTEGER NOT NULL default $DEFAULT_PUSHUP_SIZE",
|
||||
)
|
||||
}
|
||||
}
|
||||
@ -172,7 +180,7 @@ val MIGRATION_2_3 = object : Migration(2, 3) {
|
||||
val MIGRATION_3_4 = object : Migration(3, 4) {
|
||||
override fun migrate(database: SupportSQLiteDatabase) {
|
||||
database.execSQL(
|
||||
"alter table AppSettings add column hide_letters INTEGER NOT NULL default $DEFAULT_HIDE_LETTERS"
|
||||
"alter table AppSettings add column hide_letters INTEGER NOT NULL default $DEFAULT_HIDE_LETTERS",
|
||||
)
|
||||
}
|
||||
}
|
||||
@ -180,7 +188,7 @@ val MIGRATION_3_4 = object : Migration(3, 4) {
|
||||
val MIGRATION_4_5 = object : Migration(4, 5) {
|
||||
override fun migrate(database: SupportSQLiteDatabase) {
|
||||
database.execSQL(
|
||||
"alter table AppSettings add column keyboard_layouts TEXT NOT NULL default '$DEFAULT_KEYBOARD_LAYOUT'"
|
||||
"alter table AppSettings add column keyboard_layouts TEXT NOT NULL default '$DEFAULT_KEYBOARD_LAYOUT'",
|
||||
)
|
||||
}
|
||||
}
|
||||
@ -188,7 +196,7 @@ val MIGRATION_4_5 = object : Migration(4, 5) {
|
||||
val MIGRATION_5_6 = object : Migration(5, 6) {
|
||||
override fun migrate(database: SupportSQLiteDatabase) {
|
||||
database.execSQL(
|
||||
"alter table AppSettings add column key_borders INTEGER NOT NULL default $DEFAULT_KEY_BORDERS"
|
||||
"alter table AppSettings add column key_borders INTEGER NOT NULL default $DEFAULT_KEY_BORDERS",
|
||||
)
|
||||
}
|
||||
}
|
||||
@ -196,7 +204,7 @@ val MIGRATION_5_6 = object : Migration(5, 6) {
|
||||
val MIGRATION_6_7 = object : Migration(6, 7) {
|
||||
override fun migrate(database: SupportSQLiteDatabase) {
|
||||
database.execSQL(
|
||||
"alter table AppSettings add column spacebar_multitaps INTEGER NOT NULL default $DEFAULT_SPACEBAR_MULTITAPS"
|
||||
"alter table AppSettings add column spacebar_multitaps INTEGER NOT NULL default $DEFAULT_SPACEBAR_MULTITAPS",
|
||||
)
|
||||
}
|
||||
}
|
||||
@ -204,7 +212,7 @@ val MIGRATION_6_7 = object : Migration(6, 7) {
|
||||
@Database(
|
||||
version = 7,
|
||||
entities = [AppSettings::class],
|
||||
exportSchema = true
|
||||
exportSchema = true,
|
||||
)
|
||||
abstract class AppDB : RoomDatabase() {
|
||||
abstract fun appSettingsDao(): AppSettingsDao
|
||||
@ -214,7 +222,7 @@ abstract class AppDB : RoomDatabase() {
|
||||
private var INSTANCE: AppDB? = null
|
||||
|
||||
fun getDatabase(
|
||||
context: Context
|
||||
context: Context,
|
||||
): AppDB {
|
||||
// if the INSTANCE is not null, then return it,
|
||||
// if it is, then create the database
|
||||
@ -222,7 +230,7 @@ abstract class AppDB : RoomDatabase() {
|
||||
val instance = Room.databaseBuilder(
|
||||
context.applicationContext,
|
||||
AppDB::class.java,
|
||||
"thumbkey"
|
||||
"thumbkey",
|
||||
)
|
||||
.allowMainThreadQueries()
|
||||
.addMigrations(
|
||||
@ -231,7 +239,7 @@ abstract class AppDB : RoomDatabase() {
|
||||
MIGRATION_3_4,
|
||||
MIGRATION_4_5,
|
||||
MIGRATION_5_6,
|
||||
MIGRATION_6_7
|
||||
MIGRATION_6_7,
|
||||
)
|
||||
// Necessary because it can't insert data on creation
|
||||
.addCallback(object : Callback() {
|
||||
@ -243,7 +251,7 @@ abstract class AppDB : RoomDatabase() {
|
||||
CONFLICT_IGNORE, // Ensures it won't overwrite the existing data
|
||||
ContentValues(2).apply {
|
||||
put("id", 1)
|
||||
}
|
||||
},
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -25,9 +25,9 @@ val SETTINGS_KEY_ITEM =
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.Settings),
|
||||
action = KeyAction.GotoSettings,
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.SECONDARY
|
||||
color = ColorVariant.SECONDARY,
|
||||
),
|
||||
backgroundColor = ColorVariant.SURFACE_VARIANT
|
||||
backgroundColor = ColorVariant.SURFACE_VARIANT,
|
||||
)
|
||||
|
||||
val NUMERIC_KEY_ITEM =
|
||||
@ -36,32 +36,32 @@ val NUMERIC_KEY_ITEM =
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.Numbers),
|
||||
action = KeyAction.ToggleNumericMode(true),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.SECONDARY
|
||||
color = ColorVariant.SECONDARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.SelectAll),
|
||||
action = KeyAction.SelectAndCopyAll,
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ContentPaste),
|
||||
action = KeyAction.Paste,
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.Language),
|
||||
action = KeyAction.SwitchLanguage,
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.LinearScale),
|
||||
action = KeyAction.SwitchPosition,
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
backgroundColor = ColorVariant.SURFACE_VARIANT
|
||||
backgroundColor = ColorVariant.SURFACE_VARIANT,
|
||||
)
|
||||
|
||||
val BACKSPACE_KEY_ITEM =
|
||||
@ -72,39 +72,39 @@ val BACKSPACE_KEY_ITEM =
|
||||
KeyEvent(
|
||||
KeyEvent.ACTION_DOWN,
|
||||
KeyEvent
|
||||
.KEYCODE_DEL
|
||||
)
|
||||
.KEYCODE_DEL,
|
||||
),
|
||||
),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.SECONDARY
|
||||
color = ColorVariant.SECONDARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
action = KeyAction.DeleteLastWord,
|
||||
display = null
|
||||
display = null,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
action = KeyAction.SendEvent(
|
||||
KeyEvent(
|
||||
KeyEvent.ACTION_DOWN,
|
||||
KeyEvent
|
||||
.KEYCODE_FORWARD_DEL
|
||||
)
|
||||
.KEYCODE_FORWARD_DEL,
|
||||
),
|
||||
),
|
||||
display = null,
|
||||
color = ColorVariant.MUTED,
|
||||
size = FontSizeVariant.SMALLEST
|
||||
)
|
||||
size = FontSizeVariant.SMALLEST,
|
||||
),
|
||||
),
|
||||
backgroundColor = ColorVariant.SURFACE_VARIANT
|
||||
backgroundColor = ColorVariant.SURFACE_VARIANT,
|
||||
)
|
||||
|
||||
val SPACEBAR_KEY_ITEM =
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay(" "),
|
||||
action = KeyAction.CommitText(" ")
|
||||
action = KeyAction.CommitText(" "),
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
@ -112,31 +112,31 @@ val SPACEBAR_KEY_ITEM =
|
||||
action = KeyAction.SendEvent(
|
||||
KeyEvent(
|
||||
KeyEvent.ACTION_DOWN,
|
||||
KeyEvent.KEYCODE_DPAD_LEFT
|
||||
)
|
||||
KeyEvent.KEYCODE_DPAD_LEFT,
|
||||
),
|
||||
),
|
||||
display = null
|
||||
display = null,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
action = KeyAction.SendEvent(
|
||||
KeyEvent(
|
||||
KeyEvent.ACTION_DOWN,
|
||||
KeyEvent.KEYCODE_DPAD_RIGHT
|
||||
)
|
||||
KeyEvent.KEYCODE_DPAD_RIGHT,
|
||||
),
|
||||
),
|
||||
display = null
|
||||
)
|
||||
display = null,
|
||||
),
|
||||
),
|
||||
nextTapActions = arrayOf(
|
||||
nextTapActions = listOf(
|
||||
KeyAction.ReplaceLastText(", ", trimCount = 1),
|
||||
KeyAction.ReplaceLastText(". "),
|
||||
KeyAction.ReplaceLastText("? "),
|
||||
KeyAction.ReplaceLastText("! "),
|
||||
KeyAction.ReplaceLastText(": "),
|
||||
KeyAction.ReplaceLastText("; ")
|
||||
KeyAction.ReplaceLastText("; "),
|
||||
),
|
||||
backgroundColor = ColorVariant.SURFACE_VARIANT,
|
||||
widthMultiplier = 3
|
||||
widthMultiplier = 3,
|
||||
)
|
||||
val SPACEBAR_SKINNY_KEY_ITEM = SPACEBAR_KEY_ITEM.copy(widthMultiplier = 1)
|
||||
|
||||
@ -144,7 +144,7 @@ val SPACEBAR_PROGRAMMER_KEY_ITEM =
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay(" "),
|
||||
action = KeyAction.CommitText(" ")
|
||||
action = KeyAction.CommitText(" "),
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
@ -152,41 +152,41 @@ val SPACEBAR_PROGRAMMER_KEY_ITEM =
|
||||
action = KeyAction.SendEvent(
|
||||
KeyEvent(
|
||||
KeyEvent.ACTION_DOWN,
|
||||
KeyEvent.KEYCODE_DPAD_LEFT
|
||||
)
|
||||
KeyEvent.KEYCODE_DPAD_LEFT,
|
||||
),
|
||||
),
|
||||
display = null
|
||||
display = null,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
action = KeyAction.SendEvent(
|
||||
KeyEvent(
|
||||
KeyEvent.ACTION_DOWN,
|
||||
KeyEvent.KEYCODE_DPAD_RIGHT
|
||||
)
|
||||
KeyEvent.KEYCODE_DPAD_RIGHT,
|
||||
),
|
||||
),
|
||||
display = null
|
||||
display = null,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
action = KeyAction.SendEvent(
|
||||
KeyEvent(
|
||||
KeyEvent.ACTION_DOWN,
|
||||
KeyEvent.KEYCODE_DPAD_UP
|
||||
)
|
||||
KeyEvent.KEYCODE_DPAD_UP,
|
||||
),
|
||||
),
|
||||
display = null
|
||||
display = null,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
action = KeyAction.SendEvent(
|
||||
KeyEvent(
|
||||
KeyEvent.ACTION_DOWN,
|
||||
KeyEvent.KEYCODE_DPAD_DOWN
|
||||
)
|
||||
KeyEvent.KEYCODE_DPAD_DOWN,
|
||||
),
|
||||
),
|
||||
display = null
|
||||
)
|
||||
display = null,
|
||||
),
|
||||
),
|
||||
backgroundColor = ColorVariant.SURFACE_VARIANT,
|
||||
widthMultiplier = 3
|
||||
widthMultiplier = 3,
|
||||
)
|
||||
|
||||
val RETURN_KEY_ITEM =
|
||||
@ -195,7 +195,7 @@ val RETURN_KEY_ITEM =
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.KeyboardReturn),
|
||||
action = KeyAction.IMECompleteAction,
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.SECONDARY
|
||||
color = ColorVariant.SECONDARY,
|
||||
),
|
||||
backgroundColor = ColorVariant.SURFACE_VARIANT
|
||||
backgroundColor = ColorVariant.SURFACE_VARIANT,
|
||||
)
|
||||
|
@ -17,429 +17,429 @@ import com.dessalines.thumbkey.utils.SwipeDirection
|
||||
import com.dessalines.thumbkey.utils.SwipeNWay
|
||||
|
||||
val MESSAGEEASE_EN_MAIN = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("a"),
|
||||
action = KeyAction.CommitText("a"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("v"),
|
||||
action = KeyAction.CommitText("v")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("v"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("n"),
|
||||
action = KeyAction.CommitText("n"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_VERTICAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("l"),
|
||||
action = KeyAction.CommitText("l")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("l"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("i"),
|
||||
action = KeyAction.CommitText("i"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("x"),
|
||||
action = KeyAction.CommitText("x")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("x"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("h"),
|
||||
action = KeyAction.CommitText("h"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("k"),
|
||||
action = KeyAction.CommitText("k")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("k"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("o"),
|
||||
action = KeyAction.CommitText("o"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("q"),
|
||||
action = KeyAction.CommitText("q")
|
||||
action = KeyAction.CommitText("q"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("u"),
|
||||
action = KeyAction.CommitText("u")
|
||||
action = KeyAction.CommitText("u"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("p"),
|
||||
action = KeyAction.CommitText("p")
|
||||
action = KeyAction.CommitText("p"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("b"),
|
||||
action = KeyAction.CommitText("b")
|
||||
action = KeyAction.CommitText("b"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("j"),
|
||||
action = KeyAction.CommitText("j")
|
||||
action = KeyAction.CommitText("j"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("d"),
|
||||
action = KeyAction.CommitText("d")
|
||||
action = KeyAction.CommitText("d"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("g"),
|
||||
action = KeyAction.CommitText("g")
|
||||
action = KeyAction.CommitText("g"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("c"),
|
||||
action = KeyAction.CommitText("c")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("c"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("r"),
|
||||
action = KeyAction.CommitText("r"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("m"),
|
||||
action = KeyAction.CommitText("m")
|
||||
action = KeyAction.CommitText("m"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropUp),
|
||||
action = KeyAction.ToggleShiftMode(true),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("t"),
|
||||
action = KeyAction.CommitText("t"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("y"),
|
||||
action = KeyAction.CommitText("y")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("y"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("e"),
|
||||
action = KeyAction.CommitText("e"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("w"),
|
||||
action = KeyAction.CommitText("w")
|
||||
action = KeyAction.CommitText("w"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("z"),
|
||||
action = KeyAction.CommitText("z")
|
||||
action = KeyAction.CommitText("z"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("s"),
|
||||
action = KeyAction.CommitText("s"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("f"),
|
||||
action = KeyAction.CommitText("f")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("f"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val MESSAGEEASE_EN_SHIFTED = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("A"),
|
||||
action = KeyAction.CommitText("A"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("V"),
|
||||
action = KeyAction.CommitText("V")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("V"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("N"),
|
||||
action = KeyAction.CommitText("N"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_VERTICAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("L"),
|
||||
action = KeyAction.CommitText("L")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("L"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("I"),
|
||||
action = KeyAction.CommitText("I"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("X"),
|
||||
action = KeyAction.CommitText("X")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("X"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("H"),
|
||||
action = KeyAction.CommitText("H"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("K"),
|
||||
action = KeyAction.CommitText("K")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("K"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("O"),
|
||||
action = KeyAction.CommitText("O"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Q"),
|
||||
action = KeyAction.CommitText("Q")
|
||||
action = KeyAction.CommitText("Q"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("U"),
|
||||
action = KeyAction.CommitText("U")
|
||||
action = KeyAction.CommitText("U"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("P"),
|
||||
action = KeyAction.CommitText("P")
|
||||
action = KeyAction.CommitText("P"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("B"),
|
||||
action = KeyAction.CommitText("B")
|
||||
action = KeyAction.CommitText("B"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("J"),
|
||||
action = KeyAction.CommitText("J")
|
||||
action = KeyAction.CommitText("J"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("D"),
|
||||
action = KeyAction.CommitText("D")
|
||||
action = KeyAction.CommitText("D"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("G"),
|
||||
action = KeyAction.CommitText("G")
|
||||
action = KeyAction.CommitText("G"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("C"),
|
||||
action = KeyAction.CommitText("C")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("C"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("R"),
|
||||
action = KeyAction.CommitText("R"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("M"),
|
||||
action = KeyAction.CommitText("M")
|
||||
action = KeyAction.CommitText("M"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropDown),
|
||||
action = KeyAction.ToggleShiftMode(false),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.KeyboardCapslock),
|
||||
capsModeDisplay = KeyDisplay.IconDisplay(Icons.Outlined.Copyright),
|
||||
action = KeyAction.ToggleCapsLock,
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("T"),
|
||||
action = KeyAction.CommitText("T"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Y"),
|
||||
action = KeyAction.CommitText("Y")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Y"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("E"),
|
||||
action = KeyAction.CommitText("E"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("W"),
|
||||
action = KeyAction.CommitText("W")
|
||||
action = KeyAction.CommitText("W"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Z"),
|
||||
action = KeyAction.CommitText("Z")
|
||||
action = KeyAction.CommitText("Z"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("S"),
|
||||
action = KeyAction.CommitText("S"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("F"),
|
||||
action = KeyAction.CommitText("F")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("F"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val MESSAGEEASE_EN_KEYBOARD_MODES: Map<KeyboardMode, KeyboardC> = mapOf(
|
||||
KeyboardMode.MAIN to MESSAGEEASE_EN_MAIN,
|
||||
KeyboardMode.SHIFTED to MESSAGEEASE_EN_SHIFTED,
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD,
|
||||
)
|
||||
|
@ -17,727 +17,727 @@ import com.dessalines.thumbkey.utils.SwipeDirection
|
||||
import com.dessalines.thumbkey.utils.SwipeNWay
|
||||
|
||||
val MESSAGEEASE_EN_SYMBOLS_MAIN = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("a"),
|
||||
action = KeyAction.CommitText("a"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("v"),
|
||||
action = KeyAction.CommitText("v")
|
||||
action = KeyAction.CommitText("v"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("$"),
|
||||
action = KeyAction.CommitText("$"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("n"),
|
||||
action = KeyAction.CommitText("n"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("l"),
|
||||
action = KeyAction.CommitText("l")
|
||||
action = KeyAction.CommitText("l"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("`"),
|
||||
action = KeyAction.CommitText("`"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("^"),
|
||||
action = KeyAction.CommitText("^"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("´"),
|
||||
action = KeyAction.CommitText("´"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("!"),
|
||||
action = KeyAction.CommitText("!"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("\\"),
|
||||
action = KeyAction.CommitText("\\"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("/"),
|
||||
action = KeyAction.CommitText("/"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("+"),
|
||||
action = KeyAction.CommitText("+"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("i"),
|
||||
action = KeyAction.CommitText("i"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("x"),
|
||||
action = KeyAction.CommitText("x")
|
||||
action = KeyAction.CommitText("x"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("?"),
|
||||
action = KeyAction.CommitText("?"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("€"),
|
||||
action = KeyAction.CommitText("€"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("="),
|
||||
action = KeyAction.CommitText("="),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("h"),
|
||||
action = KeyAction.CommitText("h"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("k"),
|
||||
action = KeyAction.CommitText("k")
|
||||
action = KeyAction.CommitText("k"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("{"),
|
||||
action = KeyAction.CommitText("{"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("%"),
|
||||
action = KeyAction.CommitText("%"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("_"),
|
||||
action = KeyAction.CommitText("_"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("["),
|
||||
action = KeyAction.CommitText("["),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("("),
|
||||
action = KeyAction.CommitText("("),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("o"),
|
||||
action = KeyAction.CommitText("o"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("q"),
|
||||
action = KeyAction.CommitText("q")
|
||||
action = KeyAction.CommitText("q"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("u"),
|
||||
action = KeyAction.CommitText("u")
|
||||
action = KeyAction.CommitText("u"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("p"),
|
||||
action = KeyAction.CommitText("p")
|
||||
action = KeyAction.CommitText("p"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("b"),
|
||||
action = KeyAction.CommitText("b")
|
||||
action = KeyAction.CommitText("b"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("j"),
|
||||
action = KeyAction.CommitText("j")
|
||||
action = KeyAction.CommitText("j"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("d"),
|
||||
action = KeyAction.CommitText("d")
|
||||
action = KeyAction.CommitText("d"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("g"),
|
||||
action = KeyAction.CommitText("g")
|
||||
action = KeyAction.CommitText("g"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("c"),
|
||||
action = KeyAction.CommitText("c")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("c"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("r"),
|
||||
action = KeyAction.CommitText("r"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("m"),
|
||||
action = KeyAction.CommitText("m")
|
||||
action = KeyAction.CommitText("m"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropUp),
|
||||
action = KeyAction.ToggleShiftMode(true),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("|"),
|
||||
action = KeyAction.CommitText("|"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("}"),
|
||||
action = KeyAction.CommitText("}"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(")"),
|
||||
action = KeyAction.CommitText(")"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("]"),
|
||||
action = KeyAction.CommitText("]"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("@"),
|
||||
action = KeyAction.CommitText("@"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("t"),
|
||||
action = KeyAction.CommitText("t"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("y"),
|
||||
action = KeyAction.CommitText("y")
|
||||
action = KeyAction.CommitText("y"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("~"),
|
||||
action = KeyAction.CommitText("~"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(":"),
|
||||
action = KeyAction.CommitText(":"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("<"),
|
||||
action = KeyAction.CommitText("<"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("e"),
|
||||
action = KeyAction.CommitText("e"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("w"),
|
||||
action = KeyAction.CommitText("w")
|
||||
action = KeyAction.CommitText("w"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("z"),
|
||||
action = KeyAction.CommitText("z")
|
||||
action = KeyAction.CommitText("z"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("\""),
|
||||
action = KeyAction.CommitText("\""),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("*"),
|
||||
action = KeyAction.CommitText("*"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("s"),
|
||||
action = KeyAction.CommitText("s"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("f"),
|
||||
action = KeyAction.CommitText("f")
|
||||
action = KeyAction.CommitText("f"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("&"),
|
||||
action = KeyAction.CommitText("&"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("°"),
|
||||
action = KeyAction.CommitText("°"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(">"),
|
||||
action = KeyAction.CommitText(">"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(";"),
|
||||
action = KeyAction.CommitText(";"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("#"),
|
||||
action = KeyAction.CommitText("#"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val MESSAGEEASE_EN_SYMBOLS_SHIFTED = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("A"),
|
||||
action = KeyAction.CommitText("A"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("V"),
|
||||
action = KeyAction.CommitText("V")
|
||||
action = KeyAction.CommitText("V"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("$"),
|
||||
action = KeyAction.CommitText("$"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("N"),
|
||||
action = KeyAction.CommitText("N"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("L"),
|
||||
action = KeyAction.CommitText("L")
|
||||
action = KeyAction.CommitText("L"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("`"),
|
||||
action = KeyAction.CommitText("`"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("^"),
|
||||
action = KeyAction.CommitText("^"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("´"),
|
||||
action = KeyAction.CommitText("´"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("!"),
|
||||
action = KeyAction.CommitText("!"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("\\"),
|
||||
action = KeyAction.CommitText("\\"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("/"),
|
||||
action = KeyAction.CommitText("/"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("+"),
|
||||
action = KeyAction.CommitText("+"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("I"),
|
||||
action = KeyAction.CommitText("I"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("X"),
|
||||
action = KeyAction.CommitText("X")
|
||||
action = KeyAction.CommitText("X"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("?"),
|
||||
action = KeyAction.CommitText("?"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("€"),
|
||||
action = KeyAction.CommitText("€"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("="),
|
||||
action = KeyAction.CommitText("="),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("H"),
|
||||
action = KeyAction.CommitText("H"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("K"),
|
||||
action = KeyAction.CommitText("K")
|
||||
action = KeyAction.CommitText("K"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("{"),
|
||||
action = KeyAction.CommitText("{"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("%"),
|
||||
action = KeyAction.CommitText("%"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("_"),
|
||||
action = KeyAction.CommitText("_"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("["),
|
||||
action = KeyAction.CommitText("["),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("("),
|
||||
action = KeyAction.CommitText("("),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("O"),
|
||||
action = KeyAction.CommitText("O"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Q"),
|
||||
action = KeyAction.CommitText("Q")
|
||||
action = KeyAction.CommitText("Q"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("U"),
|
||||
action = KeyAction.CommitText("U")
|
||||
action = KeyAction.CommitText("U"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("P"),
|
||||
action = KeyAction.CommitText("P")
|
||||
action = KeyAction.CommitText("P"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("B"),
|
||||
action = KeyAction.CommitText("B")
|
||||
action = KeyAction.CommitText("B"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("J"),
|
||||
action = KeyAction.CommitText("J")
|
||||
action = KeyAction.CommitText("J"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("D"),
|
||||
action = KeyAction.CommitText("D")
|
||||
action = KeyAction.CommitText("D"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("G"),
|
||||
action = KeyAction.CommitText("G")
|
||||
action = KeyAction.CommitText("G"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("C"),
|
||||
action = KeyAction.CommitText("C")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("C"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("R"),
|
||||
action = KeyAction.CommitText("R"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("M"),
|
||||
action = KeyAction.CommitText("M")
|
||||
action = KeyAction.CommitText("M"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropDown),
|
||||
action = KeyAction.ToggleShiftMode(false),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.KeyboardCapslock),
|
||||
capsModeDisplay = KeyDisplay.IconDisplay(Icons.Outlined.Copyright),
|
||||
action = KeyAction.ToggleCapsLock,
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("|"),
|
||||
action = KeyAction.CommitText("|"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("}"),
|
||||
action = KeyAction.CommitText("}"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(")"),
|
||||
action = KeyAction.CommitText(")"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("]"),
|
||||
action = KeyAction.CommitText("]"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("@"),
|
||||
action = KeyAction.CommitText("@"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("T"),
|
||||
action = KeyAction.CommitText("T"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Y"),
|
||||
action = KeyAction.CommitText("Y")
|
||||
action = KeyAction.CommitText("Y"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("~"),
|
||||
action = KeyAction.CommitText("~"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(":"),
|
||||
action = KeyAction.CommitText(":"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("<"),
|
||||
action = KeyAction.CommitText("<"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("E"),
|
||||
action = KeyAction.CommitText("E"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("W"),
|
||||
action = KeyAction.CommitText("W")
|
||||
action = KeyAction.CommitText("W"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Z"),
|
||||
action = KeyAction.CommitText("Z")
|
||||
action = KeyAction.CommitText("Z"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("\""),
|
||||
action = KeyAction.CommitText("\""),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("S"),
|
||||
action = KeyAction.CommitText("S"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("F"),
|
||||
action = KeyAction.CommitText("F")
|
||||
action = KeyAction.CommitText("F"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("&"),
|
||||
action = KeyAction.CommitText("&"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("°"),
|
||||
action = KeyAction.CommitText("°"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(">"),
|
||||
action = KeyAction.CommitText(">"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(";"),
|
||||
action = KeyAction.CommitText(";"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("#"),
|
||||
action = KeyAction.CommitText("#"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val MESSAGEEASE_EN_SYMBOLS_KEYBOARD_MODES: Map<KeyboardMode, KeyboardC> = mapOf(
|
||||
KeyboardMode.MAIN to MESSAGEEASE_EN_SYMBOLS_MAIN,
|
||||
KeyboardMode.SHIFTED to MESSAGEEASE_EN_SYMBOLS_SHIFTED,
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD,
|
||||
)
|
||||
|
@ -12,212 +12,212 @@ import com.dessalines.thumbkey.utils.SwipeDirection
|
||||
import com.dessalines.thumbkey.utils.SwipeNWay
|
||||
|
||||
val MESSAGEASE_HE_MAIN = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("ר"),
|
||||
action = KeyAction.CommitText("ר"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ן"),
|
||||
action = KeyAction.CommitText("ן")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ן"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("ב"),
|
||||
action = KeyAction.CommitText("ב"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_VERTICAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ג"),
|
||||
action = KeyAction.CommitText("ג")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ג"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("א"),
|
||||
action = KeyAction.CommitText("א"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("צ"),
|
||||
action = KeyAction.CommitText("צ")
|
||||
action = KeyAction.CommitText("צ"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ץ"),
|
||||
action = KeyAction.CommitText("ץ")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ץ"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("מ"),
|
||||
action = KeyAction.CommitText("מ"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ם"),
|
||||
action = KeyAction.CommitText("ם")
|
||||
action = KeyAction.CommitText("ם"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ך"),
|
||||
action = KeyAction.CommitText("ך")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ך"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("י"),
|
||||
action = KeyAction.CommitText("י"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ק"),
|
||||
action = KeyAction.CommitText("ק")
|
||||
action = KeyAction.CommitText("ק"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ח"),
|
||||
action = KeyAction.CommitText("ח")
|
||||
action = KeyAction.CommitText("ח"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("פ"),
|
||||
action = KeyAction.CommitText("פ")
|
||||
action = KeyAction.CommitText("פ"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ד"),
|
||||
action = KeyAction.CommitText("ד")
|
||||
action = KeyAction.CommitText("ד"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ש"),
|
||||
action = KeyAction.CommitText("ש")
|
||||
action = KeyAction.CommitText("ש"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("נ"),
|
||||
action = KeyAction.CommitText("נ")
|
||||
action = KeyAction.CommitText("נ"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("כ"),
|
||||
action = KeyAction.CommitText("כ")
|
||||
action = KeyAction.CommitText("כ"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ע"),
|
||||
action = KeyAction.CommitText("ע")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ע"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("ו"),
|
||||
action = KeyAction.CommitText("ו"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ף"),
|
||||
action = KeyAction.CommitText("ף")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ף"),
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("ת"),
|
||||
action = KeyAction.CommitText("ת"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ז"),
|
||||
action = KeyAction.CommitText("ז")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ז"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("ה"),
|
||||
action = KeyAction.CommitText("ה"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ס"),
|
||||
action = KeyAction.CommitText("ס")
|
||||
action = KeyAction.CommitText("ס"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("ל"),
|
||||
action = KeyAction.CommitText("ל"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ט"),
|
||||
action = KeyAction.CommitText("ט")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ט"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val MESSAGEEASE_HE_KEYBOARD_MODES: Map<KeyboardMode, KeyboardC> = mapOf(
|
||||
KeyboardMode.MAIN to MESSAGEASE_HE_MAIN,
|
||||
KeyboardMode.SHIFTED to MESSAGEASE_HE_MAIN,
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD,
|
||||
)
|
||||
|
@ -12,281 +12,281 @@ import com.dessalines.thumbkey.utils.KeyboardC
|
||||
import com.dessalines.thumbkey.utils.SwipeDirection
|
||||
|
||||
val NUMERIC_KEYBOARD = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("1"),
|
||||
action = KeyAction.CommitText("1"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("$"),
|
||||
action = KeyAction.CommitText("$")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("$"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("2"),
|
||||
action = KeyAction.CommitText("2"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("`"),
|
||||
action = KeyAction.CommitText("`")
|
||||
action = KeyAction.CommitText("`"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("^"),
|
||||
action = KeyAction.CommitText("^")
|
||||
action = KeyAction.CommitText("^"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("´"),
|
||||
action = KeyAction.CommitText("´")
|
||||
action = KeyAction.CommitText("´"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("!"),
|
||||
action = KeyAction.CommitText("!")
|
||||
action = KeyAction.CommitText("!"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("\\"),
|
||||
action = KeyAction.CommitText("\\")
|
||||
action = KeyAction.CommitText("\\"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("/"),
|
||||
action = KeyAction.CommitText("/")
|
||||
action = KeyAction.CommitText("/"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("+"),
|
||||
action = KeyAction.CommitText("+")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("+"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("3"),
|
||||
action = KeyAction.CommitText("3"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("?"),
|
||||
action = KeyAction.CommitText("?")
|
||||
action = KeyAction.CommitText("?"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("€"),
|
||||
action = KeyAction.CommitText("€")
|
||||
action = KeyAction.CommitText("€"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("£"),
|
||||
action = KeyAction.CommitText("£")
|
||||
action = KeyAction.CommitText("£"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("="),
|
||||
action = KeyAction.CommitText("=")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("="),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("4"),
|
||||
action = KeyAction.CommitText("4"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("{"),
|
||||
action = KeyAction.CommitText("{")
|
||||
action = KeyAction.CommitText("{"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("%"),
|
||||
action = KeyAction.CommitText("%")
|
||||
action = KeyAction.CommitText("%"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("_"),
|
||||
action = KeyAction.CommitText("_")
|
||||
action = KeyAction.CommitText("_"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("["),
|
||||
action = KeyAction.CommitText("[")
|
||||
action = KeyAction.CommitText("["),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("("),
|
||||
action = KeyAction.CommitText("(")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("("),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("5"),
|
||||
action = KeyAction.CommitText("5"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
)
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("6"),
|
||||
action = KeyAction.CommitText("6"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("|"),
|
||||
action = KeyAction.CommitText("|")
|
||||
action = KeyAction.CommitText("|"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("}"),
|
||||
action = KeyAction.CommitText("}")
|
||||
action = KeyAction.CommitText("}"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(")"),
|
||||
action = KeyAction.CommitText(")")
|
||||
action = KeyAction.CommitText(")"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("]"),
|
||||
action = KeyAction.CommitText("]")
|
||||
action = KeyAction.CommitText("]"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("@"),
|
||||
action = KeyAction.CommitText("@")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("@"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.Abc),
|
||||
action = KeyAction.ToggleNumericMode(false),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
backgroundColor = ColorVariant.SURFACE_VARIANT
|
||||
)
|
||||
backgroundColor = ColorVariant.SURFACE_VARIANT,
|
||||
),
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("7"),
|
||||
action = KeyAction.CommitText("7"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("~"),
|
||||
action = KeyAction.CommitText("~")
|
||||
action = KeyAction.CommitText("~"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(":"),
|
||||
action = KeyAction.CommitText(":")
|
||||
action = KeyAction.CommitText(":"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("<"),
|
||||
action = KeyAction.CommitText("<")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("<"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("8"),
|
||||
action = KeyAction.CommitText("8"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("\""),
|
||||
action = KeyAction.CommitText("\"")
|
||||
action = KeyAction.CommitText("\""),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'")
|
||||
action = KeyAction.CommitText("'"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-")
|
||||
action = KeyAction.CommitText("-"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText(".")
|
||||
action = KeyAction.CommitText("."),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("*"),
|
||||
action = KeyAction.CommitText("*")
|
||||
action = KeyAction.CommitText("*"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(",")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText(","),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("9"),
|
||||
action = KeyAction.CommitText("9"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("&"),
|
||||
action = KeyAction.CommitText("&")
|
||||
action = KeyAction.CommitText("&"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("°"),
|
||||
action = KeyAction.CommitText("°")
|
||||
action = KeyAction.CommitText("°"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(">"),
|
||||
action = KeyAction.CommitText(">")
|
||||
action = KeyAction.CommitText(">"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(";"),
|
||||
action = KeyAction.CommitText(";")
|
||||
action = KeyAction.CommitText(";"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("#"),
|
||||
action = KeyAction.CommitText("#")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("#"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("0"),
|
||||
action = KeyAction.CommitText("0"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
widthMultiplier = 2
|
||||
widthMultiplier = 2,
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay(" "),
|
||||
action = KeyAction.CommitText(" ")
|
||||
action = KeyAction.CommitText(" "),
|
||||
),
|
||||
nextTapActions = arrayOf(
|
||||
nextTapActions = listOf(
|
||||
KeyAction.ReplaceLastText(". ", trimCount = 1),
|
||||
KeyAction.ReplaceLastText(", "),
|
||||
KeyAction.ReplaceLastText("? "),
|
||||
KeyAction.ReplaceLastText("! "),
|
||||
KeyAction.ReplaceLastText(": ")
|
||||
KeyAction.ReplaceLastText(": "),
|
||||
),
|
||||
backgroundColor = ColorVariant.SURFACE_VARIANT
|
||||
backgroundColor = ColorVariant.SURFACE_VARIANT,
|
||||
),
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
@ -17,494 +17,494 @@ import com.dessalines.thumbkey.utils.SwipeDirection
|
||||
import com.dessalines.thumbkey.utils.SwipeNWay
|
||||
|
||||
val THUMBKEY_BY_V1_MAIN = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("с"),
|
||||
action = KeyAction.CommitText("с"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ў"),
|
||||
action = KeyAction.CommitText("ў")
|
||||
action = KeyAction.CommitText("ў"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("й"),
|
||||
action = KeyAction.CommitText("й")
|
||||
action = KeyAction.CommitText("й"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("э"),
|
||||
action = KeyAction.CommitText("э")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("э"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("р"),
|
||||
action = KeyAction.CommitText("р"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_VERTICAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("х"),
|
||||
action = KeyAction.CommitText("х")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("х"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("а"),
|
||||
action = KeyAction.CommitText("а"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ж"),
|
||||
action = KeyAction.CommitText("ж")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ж"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("н"),
|
||||
action = KeyAction.CommitText("н"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("м"),
|
||||
action = KeyAction.CommitText("м")
|
||||
action = KeyAction.CommitText("м"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("л"),
|
||||
action = KeyAction.CommitText("л")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("л"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("в"),
|
||||
action = KeyAction.CommitText("в"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("я"),
|
||||
action = KeyAction.CommitText("я")
|
||||
action = KeyAction.CommitText("я"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ы"),
|
||||
action = KeyAction.CommitText("ы")
|
||||
action = KeyAction.CommitText("ы"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ь"),
|
||||
action = KeyAction.CommitText("ь")
|
||||
action = KeyAction.CommitText("ь"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("п"),
|
||||
action = KeyAction.CommitText("п")
|
||||
action = KeyAction.CommitText("п"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("у"),
|
||||
action = KeyAction.CommitText("у")
|
||||
action = KeyAction.CommitText("у"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("з"),
|
||||
action = KeyAction.CommitText("з")
|
||||
action = KeyAction.CommitText("з"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("г"),
|
||||
action = KeyAction.CommitText("г")
|
||||
action = KeyAction.CommitText("г"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("к"),
|
||||
action = KeyAction.CommitText("к")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("к"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("е"),
|
||||
action = KeyAction.CommitText("е"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ф"),
|
||||
action = KeyAction.CommitText("ф")
|
||||
action = KeyAction.CommitText("ф"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropUp),
|
||||
action = KeyAction.ToggleShiftMode(true),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropDown),
|
||||
action = KeyAction.ToggleShiftMode(false),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("т"),
|
||||
action = KeyAction.CommitText("т"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ч"),
|
||||
action = KeyAction.CommitText("ч")
|
||||
action = KeyAction.CommitText("ч"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ш"),
|
||||
action = KeyAction.CommitText("ш")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ш"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("і"),
|
||||
action = KeyAction.CommitText("і"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("б"),
|
||||
action = KeyAction.CommitText("б")
|
||||
action = KeyAction.CommitText("б"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ц"),
|
||||
action = KeyAction.CommitText("ц")
|
||||
action = KeyAction.CommitText("ц"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("\""),
|
||||
action = KeyAction.CommitText("\""),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'")
|
||||
action = KeyAction.CommitText("'"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("*"),
|
||||
action = KeyAction.CommitText("*"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("о"),
|
||||
action = KeyAction.CommitText("о"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("д"),
|
||||
action = KeyAction.CommitText("д")
|
||||
action = KeyAction.CommitText("д"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ю"),
|
||||
action = KeyAction.CommitText("ю")
|
||||
action = KeyAction.CommitText("ю"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ё"),
|
||||
action = KeyAction.CommitText("ё")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ё"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_BY_V1_SHIFTED = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("С"),
|
||||
action = KeyAction.CommitText("С"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ў"),
|
||||
action = KeyAction.CommitText("Ў")
|
||||
action = KeyAction.CommitText("Ў"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Й"),
|
||||
action = KeyAction.CommitText("Й")
|
||||
action = KeyAction.CommitText("Й"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Э"),
|
||||
action = KeyAction.CommitText("Э")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Э"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("Р"),
|
||||
action = KeyAction.CommitText("Р"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_VERTICAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Х"),
|
||||
action = KeyAction.CommitText("Х")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Х"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("А"),
|
||||
action = KeyAction.CommitText("А"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ж"),
|
||||
action = KeyAction.CommitText("Ж")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Ж"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("Н"),
|
||||
action = KeyAction.CommitText("Н"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("М"),
|
||||
action = KeyAction.CommitText("М")
|
||||
action = KeyAction.CommitText("М"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Л"),
|
||||
action = KeyAction.CommitText("Л")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Л"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("В"),
|
||||
action = KeyAction.CommitText("В"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Я"),
|
||||
action = KeyAction.CommitText("Я")
|
||||
action = KeyAction.CommitText("Я"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ы"),
|
||||
action = KeyAction.CommitText("Ы")
|
||||
action = KeyAction.CommitText("Ы"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ь"),
|
||||
action = KeyAction.CommitText("Ь")
|
||||
action = KeyAction.CommitText("Ь"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("П"),
|
||||
action = KeyAction.CommitText("П")
|
||||
action = KeyAction.CommitText("П"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("У"),
|
||||
action = KeyAction.CommitText("У")
|
||||
action = KeyAction.CommitText("У"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("З"),
|
||||
action = KeyAction.CommitText("З")
|
||||
action = KeyAction.CommitText("З"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Г"),
|
||||
action = KeyAction.CommitText("Г")
|
||||
action = KeyAction.CommitText("Г"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("К"),
|
||||
action = KeyAction.CommitText("К")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("К"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("Е"),
|
||||
action = KeyAction.CommitText("Е"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ф"),
|
||||
action = KeyAction.CommitText("Ф")
|
||||
action = KeyAction.CommitText("Ф"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.KeyboardCapslock),
|
||||
capsModeDisplay = KeyDisplay.IconDisplay(Icons.Outlined.Copyright),
|
||||
action = KeyAction.ToggleCapsLock,
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropDown),
|
||||
action = KeyAction.ToggleShiftMode(false),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("Т"),
|
||||
action = KeyAction.CommitText("Т"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ч"),
|
||||
action = KeyAction.CommitText("Ч")
|
||||
action = KeyAction.CommitText("Ч"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ш"),
|
||||
action = KeyAction.CommitText("Ш")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Ш"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("І"),
|
||||
action = KeyAction.CommitText("І"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Б"),
|
||||
action = KeyAction.CommitText("Б")
|
||||
action = KeyAction.CommitText("Б"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ц"),
|
||||
action = KeyAction.CommitText("Ц")
|
||||
action = KeyAction.CommitText("Ц"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("\""),
|
||||
action = KeyAction.CommitText("\""),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'")
|
||||
action = KeyAction.CommitText("'"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("*"),
|
||||
action = KeyAction.CommitText("*"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("О"),
|
||||
action = KeyAction.CommitText("О"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Д"),
|
||||
action = KeyAction.CommitText("Д")
|
||||
action = KeyAction.CommitText("Д"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ю"),
|
||||
action = KeyAction.CommitText("Ю")
|
||||
action = KeyAction.CommitText("Ю"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ё"),
|
||||
action = KeyAction.CommitText("Ё")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Ё"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_BY_V1_KEYBOARD_MODES: Map<KeyboardMode, KeyboardC> = mapOf(
|
||||
KeyboardMode.MAIN to THUMBKEY_BY_V1_MAIN,
|
||||
KeyboardMode.SHIFTED to THUMBKEY_BY_V1_SHIFTED,
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD,
|
||||
)
|
||||
|
@ -16,776 +16,776 @@ import com.dessalines.thumbkey.utils.KeyboardMode
|
||||
import com.dessalines.thumbkey.utils.SwipeDirection
|
||||
|
||||
val THUMBKEY_BY_V1_SYMBOLS_MAIN = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("с"),
|
||||
action = KeyAction.CommitText("с"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ў"),
|
||||
action = KeyAction.CommitText("ў")
|
||||
action = KeyAction.CommitText("ў"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("й"),
|
||||
action = KeyAction.CommitText("й")
|
||||
action = KeyAction.CommitText("й"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("э"),
|
||||
action = KeyAction.CommitText("э")
|
||||
action = KeyAction.CommitText("э"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("$"),
|
||||
action = KeyAction.CommitText("$"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("р"),
|
||||
action = KeyAction.CommitText("р"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("х"),
|
||||
action = KeyAction.CommitText("х")
|
||||
action = KeyAction.CommitText("х"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("`"),
|
||||
action = KeyAction.CommitText("`"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("^"),
|
||||
action = KeyAction.CommitText("^"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("´"),
|
||||
action = KeyAction.CommitText("´"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("!"),
|
||||
action = KeyAction.CommitText("!"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("\\"),
|
||||
action = KeyAction.CommitText("\\"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("/"),
|
||||
action = KeyAction.CommitText("/"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("+"),
|
||||
action = KeyAction.CommitText("+"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("а"),
|
||||
action = KeyAction.CommitText("а"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ж"),
|
||||
action = KeyAction.CommitText("ж")
|
||||
action = KeyAction.CommitText("ж"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("?"),
|
||||
action = KeyAction.CommitText("?"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("€"),
|
||||
action = KeyAction.CommitText("€"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("="),
|
||||
action = KeyAction.CommitText("="),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("н"),
|
||||
action = KeyAction.CommitText("н"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("м"),
|
||||
action = KeyAction.CommitText("м")
|
||||
action = KeyAction.CommitText("м"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("л"),
|
||||
action = KeyAction.CommitText("л")
|
||||
action = KeyAction.CommitText("л"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("{"),
|
||||
action = KeyAction.CommitText("{"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("("),
|
||||
action = KeyAction.CommitText("("),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("["),
|
||||
action = KeyAction.CommitText("["),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("_"),
|
||||
action = KeyAction.CommitText("_"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("%"),
|
||||
action = KeyAction.CommitText("%"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("в"),
|
||||
action = KeyAction.CommitText("в"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("я"),
|
||||
action = KeyAction.CommitText("я")
|
||||
action = KeyAction.CommitText("я"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ы"),
|
||||
action = KeyAction.CommitText("ы")
|
||||
action = KeyAction.CommitText("ы"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ь"),
|
||||
action = KeyAction.CommitText("ь")
|
||||
action = KeyAction.CommitText("ь"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("п"),
|
||||
action = KeyAction.CommitText("п")
|
||||
action = KeyAction.CommitText("п"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("у"),
|
||||
action = KeyAction.CommitText("у")
|
||||
action = KeyAction.CommitText("у"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("з"),
|
||||
action = KeyAction.CommitText("з")
|
||||
action = KeyAction.CommitText("з"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("г"),
|
||||
action = KeyAction.CommitText("г")
|
||||
action = KeyAction.CommitText("г"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("к"),
|
||||
action = KeyAction.CommitText("к")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("к"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("е"),
|
||||
action = KeyAction.CommitText("е"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ф"),
|
||||
action = KeyAction.CommitText("ф")
|
||||
action = KeyAction.CommitText("ф"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropUp),
|
||||
action = KeyAction.ToggleShiftMode(true),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropDown),
|
||||
action = KeyAction.ToggleShiftMode(false),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("|"),
|
||||
action = KeyAction.CommitText("|"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("}"),
|
||||
action = KeyAction.CommitText("}"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(")"),
|
||||
action = KeyAction.CommitText(")"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("]"),
|
||||
action = KeyAction.CommitText("]"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("@"),
|
||||
action = KeyAction.CommitText("@"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("т"),
|
||||
action = KeyAction.CommitText("т"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ч"),
|
||||
action = KeyAction.CommitText("ч")
|
||||
action = KeyAction.CommitText("ч"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ш"),
|
||||
action = KeyAction.CommitText("ш")
|
||||
action = KeyAction.CommitText("ш"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("~"),
|
||||
action = KeyAction.CommitText("~"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(":"),
|
||||
action = KeyAction.CommitText(":"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("<"),
|
||||
action = KeyAction.CommitText("<"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("і"),
|
||||
action = KeyAction.CommitText("і"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("б"),
|
||||
action = KeyAction.CommitText("б")
|
||||
action = KeyAction.CommitText("б"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ц"),
|
||||
action = KeyAction.CommitText("ц")
|
||||
action = KeyAction.CommitText("ц"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("\""),
|
||||
action = KeyAction.CommitText("\""),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'")
|
||||
action = KeyAction.CommitText("'"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("*"),
|
||||
action = KeyAction.CommitText("*"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("о"),
|
||||
action = KeyAction.CommitText("о"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("д"),
|
||||
action = KeyAction.CommitText("д")
|
||||
action = KeyAction.CommitText("д"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ю"),
|
||||
action = KeyAction.CommitText("ю")
|
||||
action = KeyAction.CommitText("ю"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ё"),
|
||||
action = KeyAction.CommitText("ё")
|
||||
action = KeyAction.CommitText("ё"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("&"),
|
||||
action = KeyAction.CommitText("&"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("°"),
|
||||
action = KeyAction.CommitText("°"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(">"),
|
||||
action = KeyAction.CommitText(">"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(";"),
|
||||
action = KeyAction.CommitText(";"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("#"),
|
||||
action = KeyAction.CommitText("#"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_BY_V1_SYMBOLS_SHIFTED = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("С"),
|
||||
action = KeyAction.CommitText("С"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ў"),
|
||||
action = KeyAction.CommitText("Ў")
|
||||
action = KeyAction.CommitText("Ў"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Й"),
|
||||
action = KeyAction.CommitText("Й")
|
||||
action = KeyAction.CommitText("Й"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Э"),
|
||||
action = KeyAction.CommitText("Э")
|
||||
action = KeyAction.CommitText("Э"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("$"),
|
||||
action = KeyAction.CommitText("$"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("Р"),
|
||||
action = KeyAction.CommitText("Р"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Х"),
|
||||
action = KeyAction.CommitText("Х")
|
||||
action = KeyAction.CommitText("Х"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("`"),
|
||||
action = KeyAction.CommitText("`"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("^"),
|
||||
action = KeyAction.CommitText("^"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("´"),
|
||||
action = KeyAction.CommitText("´"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("!"),
|
||||
action = KeyAction.CommitText("!"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("\\"),
|
||||
action = KeyAction.CommitText("\\"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("/"),
|
||||
action = KeyAction.CommitText("/"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("+"),
|
||||
action = KeyAction.CommitText("+"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("А"),
|
||||
action = KeyAction.CommitText("А"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ж"),
|
||||
action = KeyAction.CommitText("Ж")
|
||||
action = KeyAction.CommitText("Ж"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("?"),
|
||||
action = KeyAction.CommitText("?"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("€"),
|
||||
action = KeyAction.CommitText("€"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("="),
|
||||
action = KeyAction.CommitText("="),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("Н"),
|
||||
action = KeyAction.CommitText("Н"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("М"),
|
||||
action = KeyAction.CommitText("М")
|
||||
action = KeyAction.CommitText("М"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Л"),
|
||||
action = KeyAction.CommitText("Л")
|
||||
action = KeyAction.CommitText("Л"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("{"),
|
||||
action = KeyAction.CommitText("{"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("("),
|
||||
action = KeyAction.CommitText("("),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("["),
|
||||
action = KeyAction.CommitText("["),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("_"),
|
||||
action = KeyAction.CommitText("_"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("%"),
|
||||
action = KeyAction.CommitText("%"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("В"),
|
||||
action = KeyAction.CommitText("В"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Я"),
|
||||
action = KeyAction.CommitText("Я")
|
||||
action = KeyAction.CommitText("Я"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ы"),
|
||||
action = KeyAction.CommitText("Ы")
|
||||
action = KeyAction.CommitText("Ы"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ь"),
|
||||
action = KeyAction.CommitText("Ь")
|
||||
action = KeyAction.CommitText("Ь"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("П"),
|
||||
action = KeyAction.CommitText("П")
|
||||
action = KeyAction.CommitText("П"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("У"),
|
||||
action = KeyAction.CommitText("У")
|
||||
action = KeyAction.CommitText("У"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("З"),
|
||||
action = KeyAction.CommitText("З")
|
||||
action = KeyAction.CommitText("З"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Г"),
|
||||
action = KeyAction.CommitText("Г")
|
||||
action = KeyAction.CommitText("Г"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("К"),
|
||||
action = KeyAction.CommitText("К")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("К"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("Е"),
|
||||
action = KeyAction.CommitText("Е"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ф"),
|
||||
action = KeyAction.CommitText("Ф")
|
||||
action = KeyAction.CommitText("Ф"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.KeyboardCapslock),
|
||||
capsModeDisplay = KeyDisplay.IconDisplay(Icons.Outlined.Copyright),
|
||||
action = KeyAction.ToggleCapsLock,
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropDown),
|
||||
action = KeyAction.ToggleShiftMode(false),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("|"),
|
||||
action = KeyAction.CommitText("|"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("}"),
|
||||
action = KeyAction.CommitText("}"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(")"),
|
||||
action = KeyAction.CommitText(")"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("]"),
|
||||
action = KeyAction.CommitText("]"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("@"),
|
||||
action = KeyAction.CommitText("@"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("Т"),
|
||||
action = KeyAction.CommitText("Т"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ч"),
|
||||
action = KeyAction.CommitText("Ч")
|
||||
action = KeyAction.CommitText("Ч"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ш"),
|
||||
action = KeyAction.CommitText("Ш")
|
||||
action = KeyAction.CommitText("Ш"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("~"),
|
||||
action = KeyAction.CommitText("~"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(":"),
|
||||
action = KeyAction.CommitText(":"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("<"),
|
||||
action = KeyAction.CommitText("<"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("І"),
|
||||
action = KeyAction.CommitText("І"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Б"),
|
||||
action = KeyAction.CommitText("Б")
|
||||
action = KeyAction.CommitText("Б"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ц"),
|
||||
action = KeyAction.CommitText("Ц")
|
||||
action = KeyAction.CommitText("Ц"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("\""),
|
||||
action = KeyAction.CommitText("\""),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'")
|
||||
action = KeyAction.CommitText("'"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("*"),
|
||||
action = KeyAction.CommitText("*"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("О"),
|
||||
action = KeyAction.CommitText("О"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Д"),
|
||||
action = KeyAction.CommitText("Д")
|
||||
action = KeyAction.CommitText("Д"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ю"),
|
||||
action = KeyAction.CommitText("Ю")
|
||||
action = KeyAction.CommitText("Ю"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ё"),
|
||||
action = KeyAction.CommitText("Ё")
|
||||
action = KeyAction.CommitText("Ё"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("&"),
|
||||
action = KeyAction.CommitText("&"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("°"),
|
||||
action = KeyAction.CommitText("°"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(">"),
|
||||
action = KeyAction.CommitText(">"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(";"),
|
||||
action = KeyAction.CommitText(";"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("#"),
|
||||
action = KeyAction.CommitText("#"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_BY_V1_SYMBOLS_KEYBOARD_MODES: Map<KeyboardMode, KeyboardC> = mapOf(
|
||||
KeyboardMode.MAIN to THUMBKEY_BY_V1_SYMBOLS_MAIN,
|
||||
KeyboardMode.SHIFTED to THUMBKEY_BY_V1_SYMBOLS_SHIFTED,
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD,
|
||||
)
|
||||
|
@ -17,453 +17,453 @@ import com.dessalines.thumbkey.utils.SwipeDirection
|
||||
import com.dessalines.thumbkey.utils.SwipeNWay
|
||||
|
||||
val THUMBKEY_DA_V1_MAIN = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("s"),
|
||||
action = KeyAction.CommitText("s"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("v"),
|
||||
action = KeyAction.CommitText("v")
|
||||
action = KeyAction.CommitText("v"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("w"),
|
||||
action = KeyAction.CommitText("w")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("w"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("r"),
|
||||
action = KeyAction.CommitText("r"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_VERTICAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("f"),
|
||||
action = KeyAction.CommitText("f")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("f"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("i"),
|
||||
action = KeyAction.CommitText("i"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("h"),
|
||||
action = KeyAction.CommitText("h")
|
||||
action = KeyAction.CommitText("h"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("y"),
|
||||
action = KeyAction.CommitText("y")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("y"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("n"),
|
||||
action = KeyAction.CommitText("n"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("m"),
|
||||
action = KeyAction.CommitText("m")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("m"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("j"),
|
||||
action = KeyAction.CommitText("j"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("q"),
|
||||
action = KeyAction.CommitText("q")
|
||||
action = KeyAction.CommitText("q"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("x"),
|
||||
action = KeyAction.CommitText("x")
|
||||
action = KeyAction.CommitText("x"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("æ"),
|
||||
action = KeyAction.CommitText("æ")
|
||||
action = KeyAction.CommitText("æ"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("p"),
|
||||
action = KeyAction.CommitText("p")
|
||||
action = KeyAction.CommitText("p"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("å"),
|
||||
action = KeyAction.CommitText("å")
|
||||
action = KeyAction.CommitText("å"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("l"),
|
||||
action = KeyAction.CommitText("l")
|
||||
action = KeyAction.CommitText("l"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("b"),
|
||||
action = KeyAction.CommitText("b")
|
||||
action = KeyAction.CommitText("b"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ø"),
|
||||
action = KeyAction.CommitText("ø")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ø"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("a"),
|
||||
action = KeyAction.CommitText("a"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("u"),
|
||||
action = KeyAction.CommitText("u")
|
||||
action = KeyAction.CommitText("u"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropUp),
|
||||
action = KeyAction.ToggleShiftMode(true),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("t"),
|
||||
action = KeyAction.CommitText("t"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("g"),
|
||||
action = KeyAction.CommitText("g")
|
||||
action = KeyAction.CommitText("g"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("z"),
|
||||
action = KeyAction.CommitText("z")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("z"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("d"),
|
||||
action = KeyAction.CommitText("d"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("k"),
|
||||
action = KeyAction.CommitText("k")
|
||||
action = KeyAction.CommitText("k"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("c"),
|
||||
action = KeyAction.CommitText("c")
|
||||
action = KeyAction.CommitText("c"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("e"),
|
||||
action = KeyAction.CommitText("e"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("o"),
|
||||
action = KeyAction.CommitText("o")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("o"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_DA_V1_SHIFTED = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("S"),
|
||||
action = KeyAction.CommitText("S"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("V"),
|
||||
action = KeyAction.CommitText("V")
|
||||
action = KeyAction.CommitText("V"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("W"),
|
||||
action = KeyAction.CommitText("W")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("W"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("R"),
|
||||
action = KeyAction.CommitText("R"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_VERTICAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("F"),
|
||||
action = KeyAction.CommitText("F")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("F"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("I"),
|
||||
action = KeyAction.CommitText("I"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("H"),
|
||||
action = KeyAction.CommitText("H")
|
||||
action = KeyAction.CommitText("H"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Y"),
|
||||
action = KeyAction.CommitText("Y")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Y"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("N"),
|
||||
action = KeyAction.CommitText("N"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("M"),
|
||||
action = KeyAction.CommitText("M")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("M"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("J"),
|
||||
action = KeyAction.CommitText("J"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Q"),
|
||||
action = KeyAction.CommitText("Q")
|
||||
action = KeyAction.CommitText("Q"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("X"),
|
||||
action = KeyAction.CommitText("X")
|
||||
action = KeyAction.CommitText("X"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Æ"),
|
||||
action = KeyAction.CommitText("Æ")
|
||||
action = KeyAction.CommitText("Æ"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("P"),
|
||||
action = KeyAction.CommitText("P")
|
||||
action = KeyAction.CommitText("P"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Å"),
|
||||
action = KeyAction.CommitText("Å")
|
||||
action = KeyAction.CommitText("Å"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("L"),
|
||||
action = KeyAction.CommitText("L")
|
||||
action = KeyAction.CommitText("L"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("B"),
|
||||
action = KeyAction.CommitText("B")
|
||||
action = KeyAction.CommitText("B"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ø"),
|
||||
action = KeyAction.CommitText("Ø")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Ø"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("A"),
|
||||
action = KeyAction.CommitText("A"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("U"),
|
||||
action = KeyAction.CommitText("U")
|
||||
action = KeyAction.CommitText("U"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropDown),
|
||||
action = KeyAction.ToggleShiftMode(false),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.KeyboardCapslock),
|
||||
capsModeDisplay = KeyDisplay.IconDisplay(Icons.Outlined.Copyright),
|
||||
action = KeyAction.ToggleCapsLock,
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("T"),
|
||||
action = KeyAction.CommitText("T"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("G"),
|
||||
action = KeyAction.CommitText("G")
|
||||
action = KeyAction.CommitText("G"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Z"),
|
||||
action = KeyAction.CommitText("Z")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Z"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("D"),
|
||||
action = KeyAction.CommitText("D"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("K"),
|
||||
action = KeyAction.CommitText("K")
|
||||
action = KeyAction.CommitText("K"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("C"),
|
||||
action = KeyAction.CommitText("C")
|
||||
action = KeyAction.CommitText("C"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("E"),
|
||||
action = KeyAction.CommitText("E"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("O"),
|
||||
action = KeyAction.CommitText("O")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("O"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_DA_V1_KEYBOARD_MODES: Map<KeyboardMode, KeyboardC> = mapOf(
|
||||
KeyboardMode.MAIN to THUMBKEY_DA_V1_MAIN,
|
||||
KeyboardMode.SHIFTED to THUMBKEY_DA_V1_SHIFTED,
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD,
|
||||
)
|
||||
|
@ -16,458 +16,458 @@ import com.dessalines.thumbkey.utils.SwipeDirection
|
||||
import com.dessalines.thumbkey.utils.SwipeNWay
|
||||
|
||||
val THUMBKEY_DE_V2_MAIN = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("t"),
|
||||
action = KeyAction.CommitText("t"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("c"),
|
||||
action = KeyAction.CommitText("c")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("c"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("d"),
|
||||
action = KeyAction.CommitText("d"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_VERTICAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("f"),
|
||||
action = KeyAction.CommitText("f")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("f"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("a"),
|
||||
action = KeyAction.CommitText("a"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("l"),
|
||||
action = KeyAction.CommitText("l")
|
||||
action = KeyAction.CommitText("l"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ä"),
|
||||
action = KeyAction.CommitText("ä")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ä"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("r"),
|
||||
action = KeyAction.CommitText("r"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("m"),
|
||||
action = KeyAction.CommitText("m")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("m"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("h"),
|
||||
action = KeyAction.CommitText("h"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("j"),
|
||||
action = KeyAction.CommitText("j")
|
||||
action = KeyAction.CommitText("j"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("q"),
|
||||
action = KeyAction.CommitText("q")
|
||||
action = KeyAction.CommitText("q"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("z"),
|
||||
action = KeyAction.CommitText("z")
|
||||
action = KeyAction.CommitText("z"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("k"),
|
||||
action = KeyAction.CommitText("k")
|
||||
action = KeyAction.CommitText("k"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("w"),
|
||||
action = KeyAction.CommitText("w")
|
||||
action = KeyAction.CommitText("w"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("x"),
|
||||
action = KeyAction.CommitText("x")
|
||||
action = KeyAction.CommitText("x"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("v"),
|
||||
action = KeyAction.CommitText("v")
|
||||
action = KeyAction.CommitText("v"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("p"),
|
||||
action = KeyAction.CommitText("p")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("p"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("i"),
|
||||
action = KeyAction.CommitText("i"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("o"),
|
||||
action = KeyAction.CommitText("o")
|
||||
action = KeyAction.CommitText("o"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ö"),
|
||||
action = KeyAction.CommitText("ö")
|
||||
action = KeyAction.CommitText("ö"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropUp),
|
||||
action = KeyAction.ToggleShiftMode(true),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("n"),
|
||||
action = KeyAction.CommitText("n"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("g"),
|
||||
action = KeyAction.CommitText("g")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("g"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("s"),
|
||||
action = KeyAction.CommitText("s"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("b"),
|
||||
action = KeyAction.CommitText("b")
|
||||
action = KeyAction.CommitText("b"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("y"),
|
||||
action = KeyAction.CommitText("y")
|
||||
action = KeyAction.CommitText("y"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ß"),
|
||||
action = KeyAction.CommitText("ß")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ß"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("e"),
|
||||
action = KeyAction.CommitText("e"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("u"),
|
||||
action = KeyAction.CommitText("u")
|
||||
action = KeyAction.CommitText("u"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ü"),
|
||||
action = KeyAction.CommitText("ü")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ü"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_DE_V2_SHIFTED = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("T"),
|
||||
action = KeyAction.CommitText("T"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("C"),
|
||||
action = KeyAction.CommitText("C")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("C"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("D"),
|
||||
action = KeyAction.CommitText("D"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_VERTICAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("F"),
|
||||
action = KeyAction.CommitText("F")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("F"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("A"),
|
||||
action = KeyAction.CommitText("A"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("L"),
|
||||
action = KeyAction.CommitText("L")
|
||||
action = KeyAction.CommitText("L"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ä"),
|
||||
action = KeyAction.CommitText("Ä")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Ä"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("R"),
|
||||
action = KeyAction.CommitText("R"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("M"),
|
||||
action = KeyAction.CommitText("M")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("M"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("H"),
|
||||
action = KeyAction.CommitText("H"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("J"),
|
||||
action = KeyAction.CommitText("J")
|
||||
action = KeyAction.CommitText("J"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Q"),
|
||||
action = KeyAction.CommitText("Q")
|
||||
action = KeyAction.CommitText("Q"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Z"),
|
||||
action = KeyAction.CommitText("Z")
|
||||
action = KeyAction.CommitText("Z"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("K"),
|
||||
action = KeyAction.CommitText("K")
|
||||
action = KeyAction.CommitText("K"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("W"),
|
||||
action = KeyAction.CommitText("W")
|
||||
action = KeyAction.CommitText("W"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("X"),
|
||||
action = KeyAction.CommitText("X")
|
||||
action = KeyAction.CommitText("X"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("V"),
|
||||
action = KeyAction.CommitText("V")
|
||||
action = KeyAction.CommitText("V"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("P"),
|
||||
action = KeyAction.CommitText("P")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("P"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("I"),
|
||||
action = KeyAction.CommitText("I"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("O"),
|
||||
action = KeyAction.CommitText("O")
|
||||
action = KeyAction.CommitText("O"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ö"),
|
||||
action = KeyAction.CommitText("Ö")
|
||||
action = KeyAction.CommitText("Ö"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropDown),
|
||||
action = KeyAction.ToggleShiftMode(false),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.KeyboardCapslock),
|
||||
action = KeyAction.ToggleCapsLock,
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("N"),
|
||||
action = KeyAction.CommitText("N"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("G"),
|
||||
action = KeyAction.CommitText("G")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("G"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("S"),
|
||||
action = KeyAction.CommitText("S"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("B"),
|
||||
action = KeyAction.CommitText("B")
|
||||
action = KeyAction.CommitText("B"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Y"),
|
||||
action = KeyAction.CommitText("Y")
|
||||
action = KeyAction.CommitText("Y"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ß"),
|
||||
action = KeyAction.CommitText("ß")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ß"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("E"),
|
||||
action = KeyAction.CommitText("E"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("U"),
|
||||
action = KeyAction.CommitText("U")
|
||||
action = KeyAction.CommitText("U"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ü"),
|
||||
action = KeyAction.CommitText("Ü")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Ü"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_DE_V2_KEYBOARD_MODES: Map<KeyboardMode, KeyboardC> = mapOf(
|
||||
KeyboardMode.MAIN to THUMBKEY_DE_V2_MAIN,
|
||||
KeyboardMode.SHIFTED to THUMBKEY_DE_V2_SHIFTED,
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD,
|
||||
)
|
||||
|
@ -17,429 +17,429 @@ import com.dessalines.thumbkey.utils.SwipeDirection
|
||||
import com.dessalines.thumbkey.utils.SwipeNWay
|
||||
|
||||
val THUMBKEY_EN_V4_MAIN = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("s"),
|
||||
action = KeyAction.CommitText("s"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("w"),
|
||||
action = KeyAction.CommitText("w")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("w"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("r"),
|
||||
action = KeyAction.CommitText("r"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_VERTICAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("g"),
|
||||
action = KeyAction.CommitText("g")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("g"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("o"),
|
||||
action = KeyAction.CommitText("o"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("u"),
|
||||
action = KeyAction.CommitText("u")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("u"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("n"),
|
||||
action = KeyAction.CommitText("n"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("m"),
|
||||
action = KeyAction.CommitText("m")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("m"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("h"),
|
||||
action = KeyAction.CommitText("h"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("j"),
|
||||
action = KeyAction.CommitText("j")
|
||||
action = KeyAction.CommitText("j"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("q"),
|
||||
action = KeyAction.CommitText("q")
|
||||
action = KeyAction.CommitText("q"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("b"),
|
||||
action = KeyAction.CommitText("b")
|
||||
action = KeyAction.CommitText("b"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("p"),
|
||||
action = KeyAction.CommitText("p")
|
||||
action = KeyAction.CommitText("p"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("y"),
|
||||
action = KeyAction.CommitText("y")
|
||||
action = KeyAction.CommitText("y"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("x"),
|
||||
action = KeyAction.CommitText("x")
|
||||
action = KeyAction.CommitText("x"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("v"),
|
||||
action = KeyAction.CommitText("v")
|
||||
action = KeyAction.CommitText("v"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("k"),
|
||||
action = KeyAction.CommitText("k")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("k"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("a"),
|
||||
action = KeyAction.CommitText("a"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("l"),
|
||||
action = KeyAction.CommitText("l")
|
||||
action = KeyAction.CommitText("l"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropUp),
|
||||
action = KeyAction.ToggleShiftMode(true),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("t"),
|
||||
action = KeyAction.CommitText("t"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("c"),
|
||||
action = KeyAction.CommitText("c")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("c"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("i"),
|
||||
action = KeyAction.CommitText("i"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("f"),
|
||||
action = KeyAction.CommitText("f")
|
||||
action = KeyAction.CommitText("f"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("z"),
|
||||
action = KeyAction.CommitText("z")
|
||||
action = KeyAction.CommitText("z"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("*"),
|
||||
action = KeyAction.CommitText("*"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("e"),
|
||||
action = KeyAction.CommitText("e"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("d"),
|
||||
action = KeyAction.CommitText("d")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("d"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_EN_V4_SHIFTED = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("S"),
|
||||
action = KeyAction.CommitText("S"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("W"),
|
||||
action = KeyAction.CommitText("W")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("W"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("R"),
|
||||
action = KeyAction.CommitText("R"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_VERTICAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("G"),
|
||||
action = KeyAction.CommitText("G")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("G"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("O"),
|
||||
action = KeyAction.CommitText("O"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("U"),
|
||||
action = KeyAction.CommitText("U")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("U"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("N"),
|
||||
action = KeyAction.CommitText("N"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("M"),
|
||||
action = KeyAction.CommitText("M")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("M"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("H"),
|
||||
action = KeyAction.CommitText("H"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("J"),
|
||||
action = KeyAction.CommitText("J")
|
||||
action = KeyAction.CommitText("J"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Q"),
|
||||
action = KeyAction.CommitText("Q")
|
||||
action = KeyAction.CommitText("Q"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("B"),
|
||||
action = KeyAction.CommitText("B")
|
||||
action = KeyAction.CommitText("B"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("P"),
|
||||
action = KeyAction.CommitText("P")
|
||||
action = KeyAction.CommitText("P"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Y"),
|
||||
action = KeyAction.CommitText("Y")
|
||||
action = KeyAction.CommitText("Y"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("X"),
|
||||
action = KeyAction.CommitText("X")
|
||||
action = KeyAction.CommitText("X"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("V"),
|
||||
action = KeyAction.CommitText("V")
|
||||
action = KeyAction.CommitText("V"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("K"),
|
||||
action = KeyAction.CommitText("K")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("K"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("A"),
|
||||
action = KeyAction.CommitText("A"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("L"),
|
||||
action = KeyAction.CommitText("L")
|
||||
action = KeyAction.CommitText("L"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropDown),
|
||||
action = KeyAction.ToggleShiftMode(false),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.KeyboardCapslock),
|
||||
capsModeDisplay = KeyDisplay.IconDisplay(Icons.Outlined.Copyright),
|
||||
action = KeyAction.ToggleCapsLock,
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("T"),
|
||||
action = KeyAction.CommitText("T"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("C"),
|
||||
action = KeyAction.CommitText("C")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("C"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("I"),
|
||||
action = KeyAction.CommitText("I"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("F"),
|
||||
action = KeyAction.CommitText("F")
|
||||
action = KeyAction.CommitText("F"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Z"),
|
||||
action = KeyAction.CommitText("Z")
|
||||
action = KeyAction.CommitText("Z"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("*"),
|
||||
action = KeyAction.CommitText("*"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("E"),
|
||||
action = KeyAction.CommitText("E"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("D"),
|
||||
action = KeyAction.CommitText("D")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("D"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_EN_V4_KEYBOARD_MODES: Map<KeyboardMode, KeyboardC> = mapOf(
|
||||
KeyboardMode.MAIN to THUMBKEY_EN_V4_MAIN,
|
||||
KeyboardMode.SHIFTED to THUMBKEY_EN_V4_SHIFTED,
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD,
|
||||
)
|
||||
|
@ -19,685 +19,685 @@ import com.dessalines.thumbkey.utils.SwipeNWay
|
||||
|
||||
// Adds more punctuation options to the main screen to reduce switches to the numeric keyboard
|
||||
val THUMBKEY_EN_V4_PROGRAMMER = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("s"),
|
||||
action = KeyAction.CommitText("s"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("w"),
|
||||
action = KeyAction.CommitText("w")
|
||||
action = KeyAction.CommitText("w"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("("),
|
||||
action = KeyAction.CommitText("("),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("`"),
|
||||
action = KeyAction.CommitText("`"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("\\"),
|
||||
action = KeyAction.CommitText("\\"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("/"),
|
||||
action = KeyAction.CommitText("/"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("r"),
|
||||
action = KeyAction.CommitText("r"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("g"),
|
||||
action = KeyAction.CommitText("g")
|
||||
action = KeyAction.CommitText("g"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("^"),
|
||||
action = KeyAction.CommitText("^"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("\""),
|
||||
action = KeyAction.CommitText("\""),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("<"),
|
||||
action = KeyAction.CommitText("<"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(">"),
|
||||
action = KeyAction.CommitText(">"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("o"),
|
||||
action = KeyAction.CommitText("o"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("u"),
|
||||
action = KeyAction.CommitText("u")
|
||||
action = KeyAction.CommitText("u"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(")"),
|
||||
action = KeyAction.CommitText(")"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("="),
|
||||
action = KeyAction.CommitText("="),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("+"),
|
||||
action = KeyAction.CommitText("+"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("n"),
|
||||
action = KeyAction.CommitText("n"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("m"),
|
||||
action = KeyAction.CommitText("m")
|
||||
action = KeyAction.CommitText("m"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("@"),
|
||||
action = KeyAction.CommitText("@"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("$"),
|
||||
action = KeyAction.CommitText("$"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("&"),
|
||||
action = KeyAction.CommitText("&"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("|"),
|
||||
action = KeyAction.CommitText("|"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("h"),
|
||||
action = KeyAction.CommitText("h"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("j"),
|
||||
action = KeyAction.CommitText("j")
|
||||
action = KeyAction.CommitText("j"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("q"),
|
||||
action = KeyAction.CommitText("q")
|
||||
action = KeyAction.CommitText("q"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("b"),
|
||||
action = KeyAction.CommitText("b")
|
||||
action = KeyAction.CommitText("b"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("p"),
|
||||
action = KeyAction.CommitText("p")
|
||||
action = KeyAction.CommitText("p"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("y"),
|
||||
action = KeyAction.CommitText("y")
|
||||
action = KeyAction.CommitText("y"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("x"),
|
||||
action = KeyAction.CommitText("x")
|
||||
action = KeyAction.CommitText("x"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("v"),
|
||||
action = KeyAction.CommitText("v")
|
||||
action = KeyAction.CommitText("v"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("k"),
|
||||
action = KeyAction.CommitText("k")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("k"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("a"),
|
||||
action = KeyAction.CommitText("a"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("l"),
|
||||
action = KeyAction.CommitText("l")
|
||||
action = KeyAction.CommitText("l"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropUp),
|
||||
action = KeyAction.ToggleShiftMode(true),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropDown),
|
||||
action = KeyAction.ToggleShiftMode(false),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.KeyboardTab),
|
||||
action = KeyAction.CommitText("\t"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("t"),
|
||||
action = KeyAction.CommitText("t"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("c"),
|
||||
action = KeyAction.CommitText("c")
|
||||
action = KeyAction.CommitText("c"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("{"),
|
||||
action = KeyAction.CommitText("{"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("["),
|
||||
action = KeyAction.CommitText("["),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("!"),
|
||||
action = KeyAction.CommitText("!"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("i"),
|
||||
action = KeyAction.CommitText("i"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("f"),
|
||||
action = KeyAction.CommitText("f")
|
||||
action = KeyAction.CommitText("f"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("z"),
|
||||
action = KeyAction.CommitText("z")
|
||||
action = KeyAction.CommitText("z"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("*"),
|
||||
action = KeyAction.CommitText("*"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("?"),
|
||||
action = KeyAction.CommitText("?"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("e"),
|
||||
action = KeyAction.CommitText("e"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("d"),
|
||||
action = KeyAction.CommitText("d")
|
||||
action = KeyAction.CommitText("d"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(";"),
|
||||
action = KeyAction.CommitText(";"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay(":"),
|
||||
action = KeyAction.CommitText(":"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("}"),
|
||||
action = KeyAction.CommitText("}"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("]"),
|
||||
action = KeyAction.CommitText("]"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_PROGRAMMER_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_EN_V4_PROGRAMMER_SHIFTED = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("S"),
|
||||
action = KeyAction.CommitText("S"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("W"),
|
||||
action = KeyAction.CommitText("W")
|
||||
action = KeyAction.CommitText("W"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("("),
|
||||
action = KeyAction.CommitText("("),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("~"),
|
||||
action = KeyAction.CommitText("~"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("\\"),
|
||||
action = KeyAction.CommitText("\\"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("%"),
|
||||
action = KeyAction.CommitText("%"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("R"),
|
||||
action = KeyAction.CommitText("R"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("G"),
|
||||
action = KeyAction.CommitText("G")
|
||||
action = KeyAction.CommitText("G"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("^"),
|
||||
action = KeyAction.CommitText("^"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("\""),
|
||||
action = KeyAction.CommitText("\""),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("<"),
|
||||
action = KeyAction.CommitText("<"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(">"),
|
||||
action = KeyAction.CommitText(">"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("O"),
|
||||
action = KeyAction.CommitText("O"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("U"),
|
||||
action = KeyAction.CommitText("U")
|
||||
action = KeyAction.CommitText("U"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(")"),
|
||||
action = KeyAction.CommitText(")"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("="),
|
||||
action = KeyAction.CommitText("="),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("+"),
|
||||
action = KeyAction.CommitText("+"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("N"),
|
||||
action = KeyAction.CommitText("N"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("M"),
|
||||
action = KeyAction.CommitText("M")
|
||||
action = KeyAction.CommitText("M"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("#"),
|
||||
action = KeyAction.CommitText("#"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("€"),
|
||||
action = KeyAction.CommitText("€"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("&"),
|
||||
action = KeyAction.CommitText("&"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("|"),
|
||||
action = KeyAction.CommitText("|"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("H"),
|
||||
action = KeyAction.CommitText("H"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("J"),
|
||||
action = KeyAction.CommitText("J")
|
||||
action = KeyAction.CommitText("J"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Q"),
|
||||
action = KeyAction.CommitText("Q")
|
||||
action = KeyAction.CommitText("Q"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("B"),
|
||||
action = KeyAction.CommitText("B")
|
||||
action = KeyAction.CommitText("B"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("P"),
|
||||
action = KeyAction.CommitText("P")
|
||||
action = KeyAction.CommitText("P"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Y"),
|
||||
action = KeyAction.CommitText("Y")
|
||||
action = KeyAction.CommitText("Y"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("X"),
|
||||
action = KeyAction.CommitText("X")
|
||||
action = KeyAction.CommitText("X"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("V"),
|
||||
action = KeyAction.CommitText("V")
|
||||
action = KeyAction.CommitText("V"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("K"),
|
||||
action = KeyAction.CommitText("K")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("K"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("A"),
|
||||
action = KeyAction.CommitText("A"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("L"),
|
||||
action = KeyAction.CommitText("L")
|
||||
action = KeyAction.CommitText("L"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropDown),
|
||||
action = KeyAction.ToggleShiftMode(false),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.KeyboardCapslock),
|
||||
capsModeDisplay = KeyDisplay.IconDisplay(Icons.Outlined.Copyright),
|
||||
action = KeyAction.ToggleCapsLock,
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.KeyboardTab),
|
||||
action = KeyAction.CommitText("\t"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("T"),
|
||||
action = KeyAction.CommitText("T"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("C"),
|
||||
action = KeyAction.CommitText("C")
|
||||
action = KeyAction.CommitText("C"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("{"),
|
||||
action = KeyAction.CommitText("{"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("https://"),
|
||||
action = KeyAction.CommitText("https://"),
|
||||
color = ColorVariant.MUTED,
|
||||
size = FontSizeVariant.SMALLEST
|
||||
size = FontSizeVariant.SMALLEST,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("["),
|
||||
action = KeyAction.CommitText("["),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("!"),
|
||||
action = KeyAction.CommitText("!"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("I"),
|
||||
action = KeyAction.CommitText("I"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("F"),
|
||||
action = KeyAction.CommitText("F")
|
||||
action = KeyAction.CommitText("F"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Z"),
|
||||
action = KeyAction.CommitText("Z")
|
||||
action = KeyAction.CommitText("Z"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("_"),
|
||||
action = KeyAction.CommitText("_")
|
||||
action = KeyAction.CommitText("_"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("*"),
|
||||
action = KeyAction.CommitText("*"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("?"),
|
||||
action = KeyAction.CommitText("?"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("E"),
|
||||
action = KeyAction.CommitText("E"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("D"),
|
||||
action = KeyAction.CommitText("D")
|
||||
action = KeyAction.CommitText("D"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(";"),
|
||||
action = KeyAction.CommitText(";"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay(":"),
|
||||
action = KeyAction.CommitText(":"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("}"),
|
||||
action = KeyAction.CommitText("}"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("]"),
|
||||
action = KeyAction.CommitText("]"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(".com"),
|
||||
action = KeyAction.CommitText(".com"),
|
||||
color = ColorVariant.MUTED,
|
||||
size = FontSizeVariant.SMALLEST
|
||||
)
|
||||
)
|
||||
size = FontSizeVariant.SMALLEST,
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_PROGRAMMER_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_EN_V4_PROGRAMMER_KEYBOARD_MODES: Map<KeyboardMode, KeyboardC> = mapOf(
|
||||
KeyboardMode.MAIN to THUMBKEY_EN_V4_PROGRAMMER,
|
||||
KeyboardMode.SHIFTED to THUMBKEY_EN_V4_PROGRAMMER_SHIFTED,
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD,
|
||||
)
|
||||
|
@ -18,734 +18,734 @@ import com.dessalines.thumbkey.utils.SwipeNWay
|
||||
|
||||
// Adds more punctuation options to the main screen to reduce switches to the numeric keyboard
|
||||
val THUMBKEY_EN_V4_SYMBOLS = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("s"),
|
||||
action = KeyAction.CommitText("s"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("w"),
|
||||
action = KeyAction.CommitText("w")
|
||||
action = KeyAction.CommitText("w"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("$"),
|
||||
action = KeyAction.CommitText("$"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("r"),
|
||||
action = KeyAction.CommitText("r"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("g"),
|
||||
action = KeyAction.CommitText("g")
|
||||
action = KeyAction.CommitText("g"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("`"),
|
||||
action = KeyAction.CommitText("`"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("^"),
|
||||
action = KeyAction.CommitText("^"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("´"),
|
||||
action = KeyAction.CommitText("´"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("!"),
|
||||
action = KeyAction.CommitText("!"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("\\"),
|
||||
action = KeyAction.CommitText("\\"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("/"),
|
||||
action = KeyAction.CommitText("/"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("+"),
|
||||
action = KeyAction.CommitText("+"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("o"),
|
||||
action = KeyAction.CommitText("o"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("u"),
|
||||
action = KeyAction.CommitText("u")
|
||||
action = KeyAction.CommitText("u"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("?"),
|
||||
action = KeyAction.CommitText("?"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("€"),
|
||||
action = KeyAction.CommitText("€"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("="),
|
||||
action = KeyAction.CommitText("="),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("n"),
|
||||
action = KeyAction.CommitText("n"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("m"),
|
||||
action = KeyAction.CommitText("m")
|
||||
action = KeyAction.CommitText("m"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("{"),
|
||||
action = KeyAction.CommitText("{"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("%"),
|
||||
action = KeyAction.CommitText("%"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("_"),
|
||||
action = KeyAction.CommitText("_"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("["),
|
||||
action = KeyAction.CommitText("["),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("("),
|
||||
action = KeyAction.CommitText("("),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("h"),
|
||||
action = KeyAction.CommitText("h"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("j"),
|
||||
action = KeyAction.CommitText("j")
|
||||
action = KeyAction.CommitText("j"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("q"),
|
||||
action = KeyAction.CommitText("q")
|
||||
action = KeyAction.CommitText("q"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("b"),
|
||||
action = KeyAction.CommitText("b")
|
||||
action = KeyAction.CommitText("b"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("p"),
|
||||
action = KeyAction.CommitText("p")
|
||||
action = KeyAction.CommitText("p"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("y"),
|
||||
action = KeyAction.CommitText("y")
|
||||
action = KeyAction.CommitText("y"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("x"),
|
||||
action = KeyAction.CommitText("x")
|
||||
action = KeyAction.CommitText("x"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("v"),
|
||||
action = KeyAction.CommitText("v")
|
||||
action = KeyAction.CommitText("v"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("k"),
|
||||
action = KeyAction.CommitText("k")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("k"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("a"),
|
||||
action = KeyAction.CommitText("a"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("l"),
|
||||
action = KeyAction.CommitText("l")
|
||||
action = KeyAction.CommitText("l"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropUp),
|
||||
action = KeyAction.ToggleShiftMode(true),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropDown),
|
||||
action = KeyAction.ToggleShiftMode(false),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("|"),
|
||||
action = KeyAction.CommitText("|"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("}"),
|
||||
action = KeyAction.CommitText("}"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(")"),
|
||||
action = KeyAction.CommitText(")"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("]"),
|
||||
action = KeyAction.CommitText("]"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("@"),
|
||||
action = KeyAction.CommitText("@"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("t"),
|
||||
action = KeyAction.CommitText("t"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("c"),
|
||||
action = KeyAction.CommitText("c")
|
||||
action = KeyAction.CommitText("c"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("~"),
|
||||
action = KeyAction.CommitText("~"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(":"),
|
||||
action = KeyAction.CommitText(":"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("<"),
|
||||
action = KeyAction.CommitText("<"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("i"),
|
||||
action = KeyAction.CommitText("i"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("f"),
|
||||
action = KeyAction.CommitText("f")
|
||||
action = KeyAction.CommitText("f"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("z"),
|
||||
action = KeyAction.CommitText("z")
|
||||
action = KeyAction.CommitText("z"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("\""),
|
||||
action = KeyAction.CommitText("\""),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("*"),
|
||||
action = KeyAction.CommitText("*"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("e"),
|
||||
action = KeyAction.CommitText("e"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("d"),
|
||||
action = KeyAction.CommitText("d")
|
||||
action = KeyAction.CommitText("d"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("&"),
|
||||
action = KeyAction.CommitText("&"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("°"),
|
||||
action = KeyAction.CommitText("°"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(">"),
|
||||
action = KeyAction.CommitText(">"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(";"),
|
||||
action = KeyAction.CommitText(";"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("#"),
|
||||
action = KeyAction.CommitText("#"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_EN_V4_SYMBOLS_SHIFTED = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("S"),
|
||||
action = KeyAction.CommitText("S"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("W"),
|
||||
action = KeyAction.CommitText("W")
|
||||
action = KeyAction.CommitText("W"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("$"),
|
||||
action = KeyAction.CommitText("$"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("R"),
|
||||
action = KeyAction.CommitText("R"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("G"),
|
||||
action = KeyAction.CommitText("G")
|
||||
action = KeyAction.CommitText("G"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("`"),
|
||||
action = KeyAction.CommitText("`"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("^"),
|
||||
action = KeyAction.CommitText("^"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("´"),
|
||||
action = KeyAction.CommitText("´"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("!"),
|
||||
action = KeyAction.CommitText("!"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("\\"),
|
||||
action = KeyAction.CommitText("\\"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("/"),
|
||||
action = KeyAction.CommitText("/"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("+"),
|
||||
action = KeyAction.CommitText("+"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("O"),
|
||||
action = KeyAction.CommitText("O"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("U"),
|
||||
action = KeyAction.CommitText("U")
|
||||
action = KeyAction.CommitText("U"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("?"),
|
||||
action = KeyAction.CommitText("?"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("€"),
|
||||
action = KeyAction.CommitText("€"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("="),
|
||||
action = KeyAction.CommitText("="),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("N"),
|
||||
action = KeyAction.CommitText("N"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("M"),
|
||||
action = KeyAction.CommitText("M")
|
||||
action = KeyAction.CommitText("M"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("{"),
|
||||
action = KeyAction.CommitText("{"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("%"),
|
||||
action = KeyAction.CommitText("%"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("_"),
|
||||
action = KeyAction.CommitText("_"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("["),
|
||||
action = KeyAction.CommitText("["),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("("),
|
||||
action = KeyAction.CommitText("("),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("H"),
|
||||
action = KeyAction.CommitText("H"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("J"),
|
||||
action = KeyAction.CommitText("J")
|
||||
action = KeyAction.CommitText("J"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Q"),
|
||||
action = KeyAction.CommitText("Q")
|
||||
action = KeyAction.CommitText("Q"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("B"),
|
||||
action = KeyAction.CommitText("B")
|
||||
action = KeyAction.CommitText("B"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("P"),
|
||||
action = KeyAction.CommitText("P")
|
||||
action = KeyAction.CommitText("P"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Y"),
|
||||
action = KeyAction.CommitText("Y")
|
||||
action = KeyAction.CommitText("Y"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("X"),
|
||||
action = KeyAction.CommitText("X")
|
||||
action = KeyAction.CommitText("X"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("V"),
|
||||
action = KeyAction.CommitText("V")
|
||||
action = KeyAction.CommitText("V"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("K"),
|
||||
action = KeyAction.CommitText("K")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("K"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("A"),
|
||||
action = KeyAction.CommitText("A"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("L"),
|
||||
action = KeyAction.CommitText("L")
|
||||
action = KeyAction.CommitText("L"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.KeyboardCapslock),
|
||||
capsModeDisplay = KeyDisplay.IconDisplay(Icons.Outlined.Copyright),
|
||||
action = KeyAction.ToggleCapsLock,
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropDown),
|
||||
action = KeyAction.ToggleShiftMode(false),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("|"),
|
||||
action = KeyAction.CommitText("|"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("}"),
|
||||
action = KeyAction.CommitText("}"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(")"),
|
||||
action = KeyAction.CommitText(")"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("]"),
|
||||
action = KeyAction.CommitText("]"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("@"),
|
||||
action = KeyAction.CommitText("@"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("T"),
|
||||
action = KeyAction.CommitText("T"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("C"),
|
||||
action = KeyAction.CommitText("C")
|
||||
action = KeyAction.CommitText("C"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("~"),
|
||||
action = KeyAction.CommitText("~"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(":"),
|
||||
action = KeyAction.CommitText(":"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("<"),
|
||||
action = KeyAction.CommitText("<"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("I"),
|
||||
action = KeyAction.CommitText("I"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("F"),
|
||||
action = KeyAction.CommitText("F")
|
||||
action = KeyAction.CommitText("F"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Z"),
|
||||
action = KeyAction.CommitText("Z")
|
||||
action = KeyAction.CommitText("Z"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("\""),
|
||||
action = KeyAction.CommitText("\""),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("*"),
|
||||
action = KeyAction.CommitText("*"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("E"),
|
||||
action = KeyAction.CommitText("E"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("D"),
|
||||
action = KeyAction.CommitText("D")
|
||||
action = KeyAction.CommitText("D"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("&"),
|
||||
action = KeyAction.CommitText("&"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("°"),
|
||||
action = KeyAction.CommitText("°"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(">"),
|
||||
action = KeyAction.CommitText(">"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(";"),
|
||||
action = KeyAction.CommitText(";"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("#"),
|
||||
action = KeyAction.CommitText("#"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_EN_V4_SYMBOLS_KEYBOARD_MODES: Map<KeyboardMode, KeyboardC> = mapOf(
|
||||
KeyboardMode.MAIN to THUMBKEY_EN_V4_SYMBOLS,
|
||||
KeyboardMode.SHIFTED to THUMBKEY_EN_V4_SYMBOLS_SHIFTED,
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD,
|
||||
)
|
||||
|
@ -17,495 +17,495 @@ import com.dessalines.thumbkey.utils.SwipeDirection
|
||||
import com.dessalines.thumbkey.utils.SwipeNWay
|
||||
|
||||
val THUMBKEY_ES_V1_MAIN = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("n"),
|
||||
action = KeyAction.CommitText("n"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("b"),
|
||||
action = KeyAction.CommitText("b")
|
||||
action = KeyAction.CommitText("b"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ñ"),
|
||||
action = KeyAction.CommitText("ñ")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ñ"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("l"),
|
||||
action = KeyAction.CommitText("l"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("v"),
|
||||
action = KeyAction.CommitText("v")
|
||||
action = KeyAction.CommitText("v"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("¡"),
|
||||
action = KeyAction.CommitText("¡")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("¡"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("o"),
|
||||
action = KeyAction.CommitText("o"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("u"),
|
||||
action = KeyAction.CommitText("u")
|
||||
action = KeyAction.CommitText("u"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ó"),
|
||||
action = KeyAction.CommitText("ó")
|
||||
action = KeyAction.CommitText("ó"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ú"),
|
||||
action = KeyAction.CommitText("ú")
|
||||
action = KeyAction.CommitText("ú"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ü"),
|
||||
action = KeyAction.CommitText("ü")
|
||||
action = KeyAction.CommitText("ü"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("¿"),
|
||||
action = KeyAction.CommitText("¿")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("¿"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("r"),
|
||||
action = KeyAction.CommitText("r"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("p"),
|
||||
action = KeyAction.CommitText("p")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("p"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("d"),
|
||||
action = KeyAction.CommitText("d"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("j"),
|
||||
action = KeyAction.CommitText("j")
|
||||
action = KeyAction.CommitText("j"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("k"),
|
||||
action = KeyAction.CommitText("k")
|
||||
action = KeyAction.CommitText("k"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("h"),
|
||||
action = KeyAction.CommitText("h")
|
||||
action = KeyAction.CommitText("h"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("q"),
|
||||
action = KeyAction.CommitText("q")
|
||||
action = KeyAction.CommitText("q"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("y"),
|
||||
action = KeyAction.CommitText("y")
|
||||
action = KeyAction.CommitText("y"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("x"),
|
||||
action = KeyAction.CommitText("x")
|
||||
action = KeyAction.CommitText("x"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("f"),
|
||||
action = KeyAction.CommitText("f")
|
||||
action = KeyAction.CommitText("f"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("z"),
|
||||
action = KeyAction.CommitText("z")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("z"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("a"),
|
||||
action = KeyAction.CommitText("a"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("t"),
|
||||
action = KeyAction.CommitText("t")
|
||||
action = KeyAction.CommitText("t"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropUp),
|
||||
action = KeyAction.ToggleShiftMode(true),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("á"),
|
||||
action = KeyAction.CommitText("á")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("á"),
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("s"),
|
||||
action = KeyAction.CommitText("s"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("m"),
|
||||
action = KeyAction.CommitText("m")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("m"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("i"),
|
||||
action = KeyAction.CommitText("i"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("g"),
|
||||
action = KeyAction.CommitText("g")
|
||||
action = KeyAction.CommitText("g"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("í"),
|
||||
action = KeyAction.CommitText("í")
|
||||
action = KeyAction.CommitText("í"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("*"),
|
||||
action = KeyAction.CommitText("*"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("w"),
|
||||
action = KeyAction.CommitText("w")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("w"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("e"),
|
||||
action = KeyAction.CommitText("e"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("c"),
|
||||
action = KeyAction.CommitText("c")
|
||||
action = KeyAction.CommitText("c"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("é"),
|
||||
action = KeyAction.CommitText("é")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("é"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_ES_V1_SHIFTED = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("N"),
|
||||
action = KeyAction.CommitText("N"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("B"),
|
||||
action = KeyAction.CommitText("B")
|
||||
action = KeyAction.CommitText("B"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ñ"),
|
||||
action = KeyAction.CommitText("Ñ")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Ñ"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("L"),
|
||||
action = KeyAction.CommitText("L"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("V"),
|
||||
action = KeyAction.CommitText("V")
|
||||
action = KeyAction.CommitText("V"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("¡"),
|
||||
action = KeyAction.CommitText("¡")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("¡"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("O"),
|
||||
action = KeyAction.CommitText("O"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("U"),
|
||||
action = KeyAction.CommitText("U")
|
||||
action = KeyAction.CommitText("U"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ó"),
|
||||
action = KeyAction.CommitText("Ó")
|
||||
action = KeyAction.CommitText("Ó"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ú"),
|
||||
action = KeyAction.CommitText("Ú")
|
||||
action = KeyAction.CommitText("Ú"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ü"),
|
||||
action = KeyAction.CommitText("Ü")
|
||||
action = KeyAction.CommitText("Ü"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("¿"),
|
||||
action = KeyAction.CommitText("¿")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("¿"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("R"),
|
||||
action = KeyAction.CommitText("R"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("P"),
|
||||
action = KeyAction.CommitText("P")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("P"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("D"),
|
||||
action = KeyAction.CommitText("D"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("J"),
|
||||
action = KeyAction.CommitText("J")
|
||||
action = KeyAction.CommitText("J"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("K"),
|
||||
action = KeyAction.CommitText("K")
|
||||
action = KeyAction.CommitText("K"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("H"),
|
||||
action = KeyAction.CommitText("H")
|
||||
action = KeyAction.CommitText("H"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Q"),
|
||||
action = KeyAction.CommitText("Q")
|
||||
action = KeyAction.CommitText("Q"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Y"),
|
||||
action = KeyAction.CommitText("Y")
|
||||
action = KeyAction.CommitText("Y"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("X"),
|
||||
action = KeyAction.CommitText("X")
|
||||
action = KeyAction.CommitText("X"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("F"),
|
||||
action = KeyAction.CommitText("F")
|
||||
action = KeyAction.CommitText("F"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Z"),
|
||||
action = KeyAction.CommitText("Z")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Z"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("A"),
|
||||
action = KeyAction.CommitText("A"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("T"),
|
||||
action = KeyAction.CommitText("T")
|
||||
action = KeyAction.CommitText("T"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropDown),
|
||||
action = KeyAction.ToggleShiftMode(false),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.KeyboardCapslock),
|
||||
capsModeDisplay = KeyDisplay.IconDisplay(Icons.Outlined.Copyright),
|
||||
action = KeyAction.ToggleCapsLock,
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Á"),
|
||||
action = KeyAction.CommitText("Á")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Á"),
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("S"),
|
||||
action = KeyAction.CommitText("S"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("M"),
|
||||
action = KeyAction.CommitText("M")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("M"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("I"),
|
||||
action = KeyAction.CommitText("I"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("G"),
|
||||
action = KeyAction.CommitText("G")
|
||||
action = KeyAction.CommitText("G"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Í"),
|
||||
action = KeyAction.CommitText("Í")
|
||||
action = KeyAction.CommitText("Í"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("*"),
|
||||
action = KeyAction.CommitText("*"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("W"),
|
||||
action = KeyAction.CommitText("W")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("W"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("E"),
|
||||
action = KeyAction.CommitText("E"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("C"),
|
||||
action = KeyAction.CommitText("C")
|
||||
action = KeyAction.CommitText("C"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("É"),
|
||||
action = KeyAction.CommitText("É")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("É"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_ES_V1_KEYBOARD_MODES: Map<KeyboardMode, KeyboardC> = mapOf(
|
||||
KeyboardMode.MAIN to THUMBKEY_ES_V1_MAIN,
|
||||
KeyboardMode.SHIFTED to THUMBKEY_ES_V1_SHIFTED,
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD,
|
||||
)
|
||||
|
@ -17,429 +17,429 @@ import com.dessalines.thumbkey.utils.SwipeDirection
|
||||
import com.dessalines.thumbkey.utils.SwipeNWay
|
||||
|
||||
val THUMBKEY_EU_V1_MAIN = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("r"),
|
||||
action = KeyAction.CommitText("r"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("s"),
|
||||
action = KeyAction.CommitText("s")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("s"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("z"),
|
||||
action = KeyAction.CommitText("z"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_VERTICAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("h"),
|
||||
action = KeyAction.CommitText("h")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("h"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("i"),
|
||||
action = KeyAction.CommitText("i"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("d"),
|
||||
action = KeyAction.CommitText("d")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("d"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("t"),
|
||||
action = KeyAction.CommitText("t"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("g"),
|
||||
action = KeyAction.CommitText("g")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("g"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("u"),
|
||||
action = KeyAction.CommitText("u"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("c"),
|
||||
action = KeyAction.CommitText("c")
|
||||
action = KeyAction.CommitText("c"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("w"),
|
||||
action = KeyAction.CommitText("w")
|
||||
action = KeyAction.CommitText("w"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("j"),
|
||||
action = KeyAction.CommitText("j")
|
||||
action = KeyAction.CommitText("j"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("m"),
|
||||
action = KeyAction.CommitText("m")
|
||||
action = KeyAction.CommitText("m"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("x"),
|
||||
action = KeyAction.CommitText("x")
|
||||
action = KeyAction.CommitText("x"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("v"),
|
||||
action = KeyAction.CommitText("v")
|
||||
action = KeyAction.CommitText("v"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("y"),
|
||||
action = KeyAction.CommitText("y")
|
||||
action = KeyAction.CommitText("y"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("f"),
|
||||
action = KeyAction.CommitText("f")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("f"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("e"),
|
||||
action = KeyAction.CommitText("e"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("b"),
|
||||
action = KeyAction.CommitText("b")
|
||||
action = KeyAction.CommitText("b"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropUp),
|
||||
action = KeyAction.ToggleShiftMode(true),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("n"),
|
||||
action = KeyAction.CommitText("n"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("l"),
|
||||
action = KeyAction.CommitText("l")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("l"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("o"),
|
||||
action = KeyAction.CommitText("o"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("p"),
|
||||
action = KeyAction.CommitText("p")
|
||||
action = KeyAction.CommitText("p"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("q"),
|
||||
action = KeyAction.CommitText("q")
|
||||
action = KeyAction.CommitText("q"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("*"),
|
||||
action = KeyAction.CommitText("*"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("a"),
|
||||
action = KeyAction.CommitText("a"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("k"),
|
||||
action = KeyAction.CommitText("k")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("k"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_EU_V1_SHIFTED = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("R"),
|
||||
action = KeyAction.CommitText("R"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("S"),
|
||||
action = KeyAction.CommitText("S")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("S"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("Z"),
|
||||
action = KeyAction.CommitText("Z"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_VERTICAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("H"),
|
||||
action = KeyAction.CommitText("H")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("H"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("I"),
|
||||
action = KeyAction.CommitText("I"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("D"),
|
||||
action = KeyAction.CommitText("D")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("D"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("T"),
|
||||
action = KeyAction.CommitText("T"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("G"),
|
||||
action = KeyAction.CommitText("G")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("G"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("U"),
|
||||
action = KeyAction.CommitText("U"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("C"),
|
||||
action = KeyAction.CommitText("C")
|
||||
action = KeyAction.CommitText("C"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("W"),
|
||||
action = KeyAction.CommitText("W")
|
||||
action = KeyAction.CommitText("W"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("J"),
|
||||
action = KeyAction.CommitText("J")
|
||||
action = KeyAction.CommitText("J"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("M"),
|
||||
action = KeyAction.CommitText("M")
|
||||
action = KeyAction.CommitText("M"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("X"),
|
||||
action = KeyAction.CommitText("X")
|
||||
action = KeyAction.CommitText("X"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("V"),
|
||||
action = KeyAction.CommitText("V")
|
||||
action = KeyAction.CommitText("V"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Y"),
|
||||
action = KeyAction.CommitText("Y")
|
||||
action = KeyAction.CommitText("Y"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("F"),
|
||||
action = KeyAction.CommitText("F")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("F"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("E"),
|
||||
action = KeyAction.CommitText("E"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("B"),
|
||||
action = KeyAction.CommitText("B")
|
||||
action = KeyAction.CommitText("B"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropDown),
|
||||
action = KeyAction.ToggleShiftMode(false),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.KeyboardCapslock),
|
||||
capsModeDisplay = KeyDisplay.IconDisplay(Icons.Outlined.Copyright),
|
||||
action = KeyAction.ToggleCapsLock,
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("N"),
|
||||
action = KeyAction.CommitText("N"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("L"),
|
||||
action = KeyAction.CommitText("L")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("L"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("O"),
|
||||
action = KeyAction.CommitText("O"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("P"),
|
||||
action = KeyAction.CommitText("P")
|
||||
action = KeyAction.CommitText("P"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Q"),
|
||||
action = KeyAction.CommitText("Q")
|
||||
action = KeyAction.CommitText("Q"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("*"),
|
||||
action = KeyAction.CommitText("*"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("A"),
|
||||
action = KeyAction.CommitText("A"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("K"),
|
||||
action = KeyAction.CommitText("K")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("K"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_EU_V1_KEYBOARD_MODES: Map<KeyboardMode, KeyboardC> = mapOf(
|
||||
KeyboardMode.MAIN to THUMBKEY_EU_V1_MAIN,
|
||||
KeyboardMode.SHIFTED to THUMBKEY_EU_V1_SHIFTED,
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD,
|
||||
)
|
||||
|
@ -11,253 +11,253 @@ import com.dessalines.thumbkey.utils.KeyboardMode
|
||||
import com.dessalines.thumbkey.utils.SwipeDirection
|
||||
|
||||
val THUMBKEY_FA_V1_MAIN = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("د"),
|
||||
action = KeyAction.CommitText("د"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ص"),
|
||||
action = KeyAction.CommitText("ص")
|
||||
action = KeyAction.CommitText("ص"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ض"),
|
||||
action = KeyAction.CommitText("ض")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ض"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("ر"),
|
||||
action = KeyAction.CommitText("ر"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ژ"),
|
||||
action = KeyAction.CommitText("ژ")
|
||||
action = KeyAction.CommitText("ژ"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ف"),
|
||||
action = KeyAction.CommitText("ف")
|
||||
action = KeyAction.CommitText("ف"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ز"),
|
||||
action = KeyAction.CommitText("ز")
|
||||
action = KeyAction.CommitText("ز"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ق"),
|
||||
action = KeyAction.CommitText("ق")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ق"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("و"),
|
||||
action = KeyAction.CommitText("و"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ء"),
|
||||
action = KeyAction.CommitText("ء")
|
||||
action = KeyAction.CommitText("ء"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ع"),
|
||||
action = KeyAction.CommitText("ع")
|
||||
action = KeyAction.CommitText("ع"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ؤ"),
|
||||
action = KeyAction.CommitText("ؤ")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ؤ"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("ن"),
|
||||
action = KeyAction.CommitText("ن"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ج"),
|
||||
action = KeyAction.CommitText("ج")
|
||||
action = KeyAction.CommitText("ج"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ح"),
|
||||
action = KeyAction.CommitText("ح")
|
||||
action = KeyAction.CommitText("ح"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("چ"),
|
||||
action = KeyAction.CommitText("چ")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("چ"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("ا"),
|
||||
action = KeyAction.CommitText("ا"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ذ"),
|
||||
action = KeyAction.CommitText("ذ")
|
||||
action = KeyAction.CommitText("ذ"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ب"),
|
||||
action = KeyAction.CommitText("ب")
|
||||
action = KeyAction.CommitText("ب"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("پ"),
|
||||
action = KeyAction.CommitText("پ")
|
||||
action = KeyAction.CommitText("پ"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("س"),
|
||||
action = KeyAction.CommitText("س")
|
||||
action = KeyAction.CommitText("س"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ش"),
|
||||
action = KeyAction.CommitText("ش")
|
||||
action = KeyAction.CommitText("ش"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ل"),
|
||||
action = KeyAction.CommitText("ل")
|
||||
action = KeyAction.CommitText("ل"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("آ"),
|
||||
action = KeyAction.CommitText("آ")
|
||||
action = KeyAction.CommitText("آ"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("خ"),
|
||||
action = KeyAction.CommitText("خ")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("خ"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("م"),
|
||||
action = KeyAction.CommitText("م"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("گ"),
|
||||
action = KeyAction.CommitText("گ")
|
||||
action = KeyAction.CommitText("گ"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ک"),
|
||||
action = KeyAction.CommitText("ک")
|
||||
action = KeyAction.CommitText("ک"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("غ"),
|
||||
action = KeyAction.CommitText("غ")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("غ"),
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("ت"),
|
||||
action = KeyAction.CommitText("ت"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ث"),
|
||||
action = KeyAction.CommitText("ث")
|
||||
action = KeyAction.CommitText("ث"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("،"),
|
||||
action = KeyAction.CommitText("،"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("ی"),
|
||||
action = KeyAction.CommitText("ی"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("‹›"),
|
||||
action = KeyAction.CommitText(""),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ئ"),
|
||||
action = KeyAction.CommitText("ئ")
|
||||
action = KeyAction.CommitText("ئ"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ـ"),
|
||||
action = KeyAction.CommitText("ـ"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("›‹"),
|
||||
action = KeyAction.CommitText(""),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("؟"),
|
||||
action = KeyAction.CommitText("؟"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("ه"),
|
||||
action = KeyAction.CommitText("ه"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ط"),
|
||||
action = KeyAction.CommitText("ط")
|
||||
action = KeyAction.CommitText("ط"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ظ"),
|
||||
action = KeyAction.CommitText("ظ")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ظ"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_FA_V1_KEYBOARD_MODES: Map<KeyboardMode, KeyboardC> = mapOf(
|
||||
KeyboardMode.MAIN to THUMBKEY_FA_V1_MAIN,
|
||||
KeyboardMode.SHIFTED to THUMBKEY_FA_V1_MAIN,
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD,
|
||||
)
|
||||
|
@ -17,453 +17,453 @@ import com.dessalines.thumbkey.utils.SwipeDirection
|
||||
import com.dessalines.thumbkey.utils.SwipeNWay
|
||||
|
||||
val THUMBKEY_FI_V1_MAIN = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("s"),
|
||||
action = KeyAction.CommitText("s"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("r"),
|
||||
action = KeyAction.CommitText("r")
|
||||
action = KeyAction.CommitText("r"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("z"),
|
||||
action = KeyAction.CommitText("z")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("z"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("k"),
|
||||
action = KeyAction.CommitText("k"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_VERTICAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("j"),
|
||||
action = KeyAction.CommitText("j")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("j"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("o"),
|
||||
action = KeyAction.CommitText("o"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ö"),
|
||||
action = KeyAction.CommitText("ö")
|
||||
action = KeyAction.CommitText("ö"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("å"),
|
||||
action = KeyAction.CommitText("å")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("å"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("n"),
|
||||
action = KeyAction.CommitText("n"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("m"),
|
||||
action = KeyAction.CommitText("m")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("m"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("l"),
|
||||
action = KeyAction.CommitText("l"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("p"),
|
||||
action = KeyAction.CommitText("p")
|
||||
action = KeyAction.CommitText("p"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("q"),
|
||||
action = KeyAction.CommitText("q")
|
||||
action = KeyAction.CommitText("q"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("b"),
|
||||
action = KeyAction.CommitText("b")
|
||||
action = KeyAction.CommitText("b"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("f"),
|
||||
action = KeyAction.CommitText("f")
|
||||
action = KeyAction.CommitText("f"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("g"),
|
||||
action = KeyAction.CommitText("g")
|
||||
action = KeyAction.CommitText("g"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("x"),
|
||||
action = KeyAction.CommitText("x")
|
||||
action = KeyAction.CommitText("x"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("d"),
|
||||
action = KeyAction.CommitText("d")
|
||||
action = KeyAction.CommitText("d"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("h"),
|
||||
action = KeyAction.CommitText("h")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("h"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("a"),
|
||||
action = KeyAction.CommitText("a"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ä"),
|
||||
action = KeyAction.CommitText("ä")
|
||||
action = KeyAction.CommitText("ä"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropUp),
|
||||
action = KeyAction.ToggleShiftMode(true),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("t"),
|
||||
action = KeyAction.CommitText("t"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("v"),
|
||||
action = KeyAction.CommitText("v")
|
||||
action = KeyAction.CommitText("v"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("w"),
|
||||
action = KeyAction.CommitText("w")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("w"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("e"),
|
||||
action = KeyAction.CommitText("e"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("y"),
|
||||
action = KeyAction.CommitText("y")
|
||||
action = KeyAction.CommitText("y"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("c"),
|
||||
action = KeyAction.CommitText("c")
|
||||
action = KeyAction.CommitText("c"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("i"),
|
||||
action = KeyAction.CommitText("i"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("u"),
|
||||
action = KeyAction.CommitText("u")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("u"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_FI_V1_SHIFTED = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("S"),
|
||||
action = KeyAction.CommitText("S"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("R"),
|
||||
action = KeyAction.CommitText("R")
|
||||
action = KeyAction.CommitText("R"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Z"),
|
||||
action = KeyAction.CommitText("Z")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Z"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("K"),
|
||||
action = KeyAction.CommitText("K"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_VERTICAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("J"),
|
||||
action = KeyAction.CommitText("J")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("J"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("O"),
|
||||
action = KeyAction.CommitText("O"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ö"),
|
||||
action = KeyAction.CommitText("Ö")
|
||||
action = KeyAction.CommitText("Ö"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Å"),
|
||||
action = KeyAction.CommitText("Å")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Å"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("N"),
|
||||
action = KeyAction.CommitText("N"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("M"),
|
||||
action = KeyAction.CommitText("M")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("M"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("L"),
|
||||
action = KeyAction.CommitText("L"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("P"),
|
||||
action = KeyAction.CommitText("P")
|
||||
action = KeyAction.CommitText("P"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Q"),
|
||||
action = KeyAction.CommitText("Q")
|
||||
action = KeyAction.CommitText("Q"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("B"),
|
||||
action = KeyAction.CommitText("B")
|
||||
action = KeyAction.CommitText("B"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("F"),
|
||||
action = KeyAction.CommitText("F")
|
||||
action = KeyAction.CommitText("F"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("G"),
|
||||
action = KeyAction.CommitText("G")
|
||||
action = KeyAction.CommitText("G"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("X"),
|
||||
action = KeyAction.CommitText("X")
|
||||
action = KeyAction.CommitText("X"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("D"),
|
||||
action = KeyAction.CommitText("D")
|
||||
action = KeyAction.CommitText("D"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("H"),
|
||||
action = KeyAction.CommitText("H")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("H"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("A"),
|
||||
action = KeyAction.CommitText("A"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ä"),
|
||||
action = KeyAction.CommitText("Ä")
|
||||
action = KeyAction.CommitText("Ä"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropDown),
|
||||
action = KeyAction.ToggleShiftMode(false),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.KeyboardCapslock),
|
||||
capsModeDisplay = KeyDisplay.IconDisplay(Icons.Outlined.Copyright),
|
||||
action = KeyAction.ToggleCapsLock,
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("T"),
|
||||
action = KeyAction.CommitText("T"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("V"),
|
||||
action = KeyAction.CommitText("V")
|
||||
action = KeyAction.CommitText("V"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("W"),
|
||||
action = KeyAction.CommitText("W")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("W"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("E"),
|
||||
action = KeyAction.CommitText("E"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Y"),
|
||||
action = KeyAction.CommitText("Y")
|
||||
action = KeyAction.CommitText("Y"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("C"),
|
||||
action = KeyAction.CommitText("C")
|
||||
action = KeyAction.CommitText("C"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("I"),
|
||||
action = KeyAction.CommitText("I"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("U"),
|
||||
action = KeyAction.CommitText("U")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("U"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_FI_V1_KEYBOARD_MODES: Map<KeyboardMode, KeyboardC> = mapOf(
|
||||
KeyboardMode.MAIN to THUMBKEY_FI_V1_MAIN,
|
||||
KeyboardMode.SHIFTED to THUMBKEY_FI_V1_SHIFTED,
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD,
|
||||
)
|
||||
|
@ -17,451 +17,451 @@ import com.dessalines.thumbkey.utils.SwipeDirection
|
||||
import com.dessalines.thumbkey.utils.SwipeNWay
|
||||
|
||||
val THUMBKEY_FI_V1_WIDE_MAIN = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("s"),
|
||||
action = KeyAction.CommitText("s"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("r"),
|
||||
action = KeyAction.CommitText("r")
|
||||
action = KeyAction.CommitText("r"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("z"),
|
||||
action = KeyAction.CommitText("z")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("z"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("k"),
|
||||
action = KeyAction.CommitText("k"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_VERTICAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("j"),
|
||||
action = KeyAction.CommitText("j")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("j"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("o"),
|
||||
action = KeyAction.CommitText("o"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ö"),
|
||||
action = KeyAction.CommitText("ö")
|
||||
action = KeyAction.CommitText("ö"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("å"),
|
||||
action = KeyAction.CommitText("å")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("å"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SPACEBAR_SKINNY_KEY_ITEM,
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("n"),
|
||||
action = KeyAction.CommitText("n"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("m"),
|
||||
action = KeyAction.CommitText("m")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("m"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("l"),
|
||||
action = KeyAction.CommitText("l"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("p"),
|
||||
action = KeyAction.CommitText("p")
|
||||
action = KeyAction.CommitText("p"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("q"),
|
||||
action = KeyAction.CommitText("q")
|
||||
action = KeyAction.CommitText("q"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("b"),
|
||||
action = KeyAction.CommitText("b")
|
||||
action = KeyAction.CommitText("b"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("f"),
|
||||
action = KeyAction.CommitText("f")
|
||||
action = KeyAction.CommitText("f"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("g"),
|
||||
action = KeyAction.CommitText("g")
|
||||
action = KeyAction.CommitText("g"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("x"),
|
||||
action = KeyAction.CommitText("x")
|
||||
action = KeyAction.CommitText("x"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("d"),
|
||||
action = KeyAction.CommitText("d")
|
||||
action = KeyAction.CommitText("d"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("h"),
|
||||
action = KeyAction.CommitText("h")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("h"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("a"),
|
||||
action = KeyAction.CommitText("a"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ä"),
|
||||
action = KeyAction.CommitText("ä")
|
||||
action = KeyAction.CommitText("ä"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropUp),
|
||||
action = KeyAction.ToggleShiftMode(true),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
SPACEBAR_SKINNY_KEY_ITEM,
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("t"),
|
||||
action = KeyAction.CommitText("t"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("v"),
|
||||
action = KeyAction.CommitText("v")
|
||||
action = KeyAction.CommitText("v"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("w"),
|
||||
action = KeyAction.CommitText("w")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("w"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("e"),
|
||||
action = KeyAction.CommitText("e"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("y"),
|
||||
action = KeyAction.CommitText("y")
|
||||
action = KeyAction.CommitText("y"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("c"),
|
||||
action = KeyAction.CommitText("c")
|
||||
action = KeyAction.CommitText("c"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("i"),
|
||||
action = KeyAction.CommitText("i"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("u"),
|
||||
action = KeyAction.CommitText("u")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("u"),
|
||||
),
|
||||
),
|
||||
),
|
||||
RETURN_KEY_ITEM,
|
||||
BACKSPACE_KEY_ITEM
|
||||
)
|
||||
)
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_FI_V1_WIDE_SHIFTED = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("S"),
|
||||
action = KeyAction.CommitText("S"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("R"),
|
||||
action = KeyAction.CommitText("R")
|
||||
action = KeyAction.CommitText("R"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Z"),
|
||||
action = KeyAction.CommitText("Z")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Z"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("K"),
|
||||
action = KeyAction.CommitText("K"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_VERTICAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("J"),
|
||||
action = KeyAction.CommitText("J")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("J"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("O"),
|
||||
action = KeyAction.CommitText("O"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ö"),
|
||||
action = KeyAction.CommitText("Ö")
|
||||
action = KeyAction.CommitText("Ö"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Å"),
|
||||
action = KeyAction.CommitText("Å")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Å"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SPACEBAR_SKINNY_KEY_ITEM,
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("N"),
|
||||
action = KeyAction.CommitText("N"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("M"),
|
||||
action = KeyAction.CommitText("M")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("M"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("L"),
|
||||
action = KeyAction.CommitText("L"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("P"),
|
||||
action = KeyAction.CommitText("P")
|
||||
action = KeyAction.CommitText("P"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Q"),
|
||||
action = KeyAction.CommitText("Q")
|
||||
action = KeyAction.CommitText("Q"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("B"),
|
||||
action = KeyAction.CommitText("B")
|
||||
action = KeyAction.CommitText("B"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("F"),
|
||||
action = KeyAction.CommitText("F")
|
||||
action = KeyAction.CommitText("F"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("G"),
|
||||
action = KeyAction.CommitText("G")
|
||||
action = KeyAction.CommitText("G"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("X"),
|
||||
action = KeyAction.CommitText("X")
|
||||
action = KeyAction.CommitText("X"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("D"),
|
||||
action = KeyAction.CommitText("D")
|
||||
action = KeyAction.CommitText("D"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("H"),
|
||||
action = KeyAction.CommitText("H")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("H"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("A"),
|
||||
action = KeyAction.CommitText("A"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ä"),
|
||||
action = KeyAction.CommitText("Ä")
|
||||
action = KeyAction.CommitText("Ä"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropDown),
|
||||
action = KeyAction.ToggleShiftMode(false),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.KeyboardCapslock),
|
||||
capsModeDisplay = KeyDisplay.IconDisplay(Icons.Outlined.Copyright),
|
||||
action = KeyAction.ToggleCapsLock,
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
SPACEBAR_SKINNY_KEY_ITEM,
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("T"),
|
||||
action = KeyAction.CommitText("T"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("V"),
|
||||
action = KeyAction.CommitText("V")
|
||||
action = KeyAction.CommitText("V"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("W"),
|
||||
action = KeyAction.CommitText("W")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("W"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("E"),
|
||||
action = KeyAction.CommitText("E"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Y"),
|
||||
action = KeyAction.CommitText("Y")
|
||||
action = KeyAction.CommitText("Y"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("C"),
|
||||
action = KeyAction.CommitText("C")
|
||||
action = KeyAction.CommitText("C"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("I"),
|
||||
action = KeyAction.CommitText("I"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("U"),
|
||||
action = KeyAction.CommitText("U")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("U"),
|
||||
),
|
||||
),
|
||||
),
|
||||
RETURN_KEY_ITEM,
|
||||
BACKSPACE_KEY_ITEM
|
||||
)
|
||||
)
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_FI_V1_WIDE_KEYBOARD_MODES: Map<KeyboardMode, KeyboardC> = mapOf(
|
||||
KeyboardMode.MAIN to THUMBKEY_FI_V1_WIDE_MAIN,
|
||||
KeyboardMode.SHIFTED to THUMBKEY_FI_V1_WIDE_SHIFTED,
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD,
|
||||
)
|
||||
|
@ -16,542 +16,542 @@ import com.dessalines.thumbkey.utils.SwipeDirection
|
||||
import com.dessalines.thumbkey.utils.SwipeNWay
|
||||
|
||||
val THUMBKEY_FR_V1_MAIN = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("r"),
|
||||
action = KeyAction.CommitText("r"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("v"),
|
||||
action = KeyAction.CommitText("v")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("v"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("u"),
|
||||
action = KeyAction.CommitText("u"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ü"),
|
||||
action = KeyAction.CommitText("ü")
|
||||
action = KeyAction.CommitText("ü"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("û"),
|
||||
action = KeyAction.CommitText("û")
|
||||
action = KeyAction.CommitText("û"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ù"),
|
||||
action = KeyAction.CommitText("ù")
|
||||
action = KeyAction.CommitText("ù"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("f"),
|
||||
action = KeyAction.CommitText("f")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("f"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("i"),
|
||||
action = KeyAction.CommitText("i"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ï"),
|
||||
action = KeyAction.CommitText("ï")
|
||||
action = KeyAction.CommitText("ï"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("î"),
|
||||
action = KeyAction.CommitText("î")
|
||||
action = KeyAction.CommitText("î"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("c"),
|
||||
action = KeyAction.CommitText("c")
|
||||
action = KeyAction.CommitText("c"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ç"),
|
||||
action = KeyAction.CommitText("ç")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ç"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("n"),
|
||||
action = KeyAction.CommitText("n"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("m"),
|
||||
action = KeyAction.CommitText("m")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("m"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("l"),
|
||||
action = KeyAction.CommitText("l"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("z"),
|
||||
action = KeyAction.CommitText("z")
|
||||
action = KeyAction.CommitText("z"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("w"),
|
||||
action = KeyAction.CommitText("w")
|
||||
action = KeyAction.CommitText("w"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("x"),
|
||||
action = KeyAction.CommitText("x")
|
||||
action = KeyAction.CommitText("x"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("g"),
|
||||
action = KeyAction.CommitText("g")
|
||||
action = KeyAction.CommitText("g"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("b"),
|
||||
action = KeyAction.CommitText("b")
|
||||
action = KeyAction.CommitText("b"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("y"),
|
||||
action = KeyAction.CommitText("y")
|
||||
action = KeyAction.CommitText("y"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("h"),
|
||||
action = KeyAction.CommitText("h")
|
||||
action = KeyAction.CommitText("h"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("j"),
|
||||
action = KeyAction.CommitText("j")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("j"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("a"),
|
||||
action = KeyAction.CommitText("a"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropUp),
|
||||
action = KeyAction.ToggleShiftMode(true),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("â"),
|
||||
action = KeyAction.CommitText("â")
|
||||
action = KeyAction.CommitText("â"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("à"),
|
||||
action = KeyAction.CommitText("à")
|
||||
action = KeyAction.CommitText("à"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("d"),
|
||||
action = KeyAction.CommitText("d")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("d"),
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("s"),
|
||||
action = KeyAction.CommitText("s"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("p"),
|
||||
action = KeyAction.CommitText("p")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("p"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("t"),
|
||||
action = KeyAction.CommitText("t"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("q"),
|
||||
action = KeyAction.CommitText("q")
|
||||
action = KeyAction.CommitText("q"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("k"),
|
||||
action = KeyAction.CommitText("k")
|
||||
action = KeyAction.CommitText("k"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("*"),
|
||||
action = KeyAction.CommitText("*"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("e"),
|
||||
action = KeyAction.CommitText("e"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("o"),
|
||||
action = KeyAction.CommitText("o")
|
||||
action = KeyAction.CommitText("o"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ë"),
|
||||
action = KeyAction.CommitText("ë")
|
||||
action = KeyAction.CommitText("ë"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ê"),
|
||||
action = KeyAction.CommitText("ê")
|
||||
action = KeyAction.CommitText("ê"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("è"),
|
||||
action = KeyAction.CommitText("è")
|
||||
action = KeyAction.CommitText("è"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("é"),
|
||||
action = KeyAction.CommitText("é")
|
||||
action = KeyAction.CommitText("é"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("œ"),
|
||||
action = KeyAction.CommitText("œ")
|
||||
action = KeyAction.CommitText("œ"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ô"),
|
||||
action = KeyAction.CommitText("ô")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ô"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_FR_V1_SHIFTED = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("R"),
|
||||
action = KeyAction.CommitText("R"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("V"),
|
||||
action = KeyAction.CommitText("V")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("V"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("U"),
|
||||
action = KeyAction.CommitText("U"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ü"),
|
||||
action = KeyAction.CommitText("Ü")
|
||||
action = KeyAction.CommitText("Ü"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Û"),
|
||||
action = KeyAction.CommitText("Û")
|
||||
action = KeyAction.CommitText("Û"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ù"),
|
||||
action = KeyAction.CommitText("Ù")
|
||||
action = KeyAction.CommitText("Ù"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("F"),
|
||||
action = KeyAction.CommitText("F")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("F"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("I"),
|
||||
action = KeyAction.CommitText("I"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ï"),
|
||||
action = KeyAction.CommitText("Ï")
|
||||
action = KeyAction.CommitText("Ï"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Î"),
|
||||
action = KeyAction.CommitText("Î")
|
||||
action = KeyAction.CommitText("Î"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("C"),
|
||||
action = KeyAction.CommitText("C")
|
||||
action = KeyAction.CommitText("C"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ç"),
|
||||
action = KeyAction.CommitText("Ç")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Ç"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("N"),
|
||||
action = KeyAction.CommitText("N"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("M"),
|
||||
action = KeyAction.CommitText("M")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("M"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("L"),
|
||||
action = KeyAction.CommitText("L"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Z"),
|
||||
action = KeyAction.CommitText("Z")
|
||||
action = KeyAction.CommitText("Z"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("W"),
|
||||
action = KeyAction.CommitText("W")
|
||||
action = KeyAction.CommitText("W"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("X"),
|
||||
action = KeyAction.CommitText("X")
|
||||
action = KeyAction.CommitText("X"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("G"),
|
||||
action = KeyAction.CommitText("G")
|
||||
action = KeyAction.CommitText("G"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("B"),
|
||||
action = KeyAction.CommitText("B")
|
||||
action = KeyAction.CommitText("B"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Y"),
|
||||
action = KeyAction.CommitText("Y")
|
||||
action = KeyAction.CommitText("Y"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("H"),
|
||||
action = KeyAction.CommitText("H")
|
||||
action = KeyAction.CommitText("H"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("J"),
|
||||
action = KeyAction.CommitText("J")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("J"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("A"),
|
||||
action = KeyAction.CommitText("A"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.KeyboardCapslock),
|
||||
action = KeyAction.ToggleCapsLock,
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Â"),
|
||||
action = KeyAction.CommitText("Â")
|
||||
action = KeyAction.CommitText("Â"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("À"),
|
||||
action = KeyAction.CommitText("À")
|
||||
action = KeyAction.CommitText("À"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropDown),
|
||||
action = KeyAction.ToggleShiftMode(false),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("D"),
|
||||
action = KeyAction.CommitText("D")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("D"),
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("S"),
|
||||
action = KeyAction.CommitText("S"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("P"),
|
||||
action = KeyAction.CommitText("P")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("P"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("T"),
|
||||
action = KeyAction.CommitText("T"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Q"),
|
||||
action = KeyAction.CommitText("Q")
|
||||
action = KeyAction.CommitText("Q"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("K"),
|
||||
action = KeyAction.CommitText("K")
|
||||
action = KeyAction.CommitText("K"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("*"),
|
||||
action = KeyAction.CommitText("*"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("E"),
|
||||
action = KeyAction.CommitText("E"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("O"),
|
||||
action = KeyAction.CommitText("O")
|
||||
action = KeyAction.CommitText("O"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ë"),
|
||||
action = KeyAction.CommitText("Ë")
|
||||
action = KeyAction.CommitText("Ë"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ê"),
|
||||
action = KeyAction.CommitText("Ê")
|
||||
action = KeyAction.CommitText("Ê"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("È"),
|
||||
action = KeyAction.CommitText("È")
|
||||
action = KeyAction.CommitText("È"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("É"),
|
||||
action = KeyAction.CommitText("É")
|
||||
action = KeyAction.CommitText("É"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Œ"),
|
||||
action = KeyAction.CommitText("Œ")
|
||||
action = KeyAction.CommitText("Œ"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ô"),
|
||||
action = KeyAction.CommitText("Ô")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Ô"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_FR_V1_KEYBOARD_MODES: Map<KeyboardMode, KeyboardC> = mapOf(
|
||||
KeyboardMode.MAIN to THUMBKEY_FR_V1_MAIN,
|
||||
KeyboardMode.SHIFTED to THUMBKEY_FR_V1_SHIFTED,
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD,
|
||||
)
|
||||
|
@ -17,493 +17,493 @@ import com.dessalines.thumbkey.utils.SwipeDirection
|
||||
import com.dessalines.thumbkey.utils.SwipeNWay
|
||||
|
||||
val THUMBKEY_IT_V1_MAIN = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("s"),
|
||||
action = KeyAction.CommitText("s"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("z"),
|
||||
action = KeyAction.CommitText("z")
|
||||
action = KeyAction.CommitText("z"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("v"),
|
||||
action = KeyAction.CommitText("v")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("v"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("r"),
|
||||
action = KeyAction.CommitText("r"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("p"),
|
||||
action = KeyAction.CommitText("p")
|
||||
action = KeyAction.CommitText("p"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("q"),
|
||||
action = KeyAction.CommitText("q")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("q"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("o"),
|
||||
action = KeyAction.CommitText("o"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("u"),
|
||||
action = KeyAction.CommitText("u")
|
||||
action = KeyAction.CommitText("u"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ù"),
|
||||
action = KeyAction.CommitText("ù")
|
||||
action = KeyAction.CommitText("ù"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ò"),
|
||||
action = KeyAction.CommitText("ò")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ò"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("n"),
|
||||
action = KeyAction.CommitText("n"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("m"),
|
||||
action = KeyAction.CommitText("m")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("m"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("l"),
|
||||
action = KeyAction.CommitText("l"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("j"),
|
||||
action = KeyAction.CommitText("j")
|
||||
action = KeyAction.CommitText("j"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("y"),
|
||||
action = KeyAction.CommitText("y")
|
||||
action = KeyAction.CommitText("y"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("x"),
|
||||
action = KeyAction.CommitText("x")
|
||||
action = KeyAction.CommitText("x"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("w"),
|
||||
action = KeyAction.CommitText("w")
|
||||
action = KeyAction.CommitText("w"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("k"),
|
||||
action = KeyAction.CommitText("k")
|
||||
action = KeyAction.CommitText("k"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("h"),
|
||||
action = KeyAction.CommitText("h")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("h"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("a"),
|
||||
action = KeyAction.CommitText("a"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("b"),
|
||||
action = KeyAction.CommitText("b")
|
||||
action = KeyAction.CommitText("b"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("à"),
|
||||
action = KeyAction.CommitText("à")
|
||||
action = KeyAction.CommitText("à"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("c"),
|
||||
action = KeyAction.CommitText("c")
|
||||
action = KeyAction.CommitText("c"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropUp),
|
||||
action = KeyAction.ToggleShiftMode(true),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("t"),
|
||||
action = KeyAction.CommitText("t"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("!"),
|
||||
action = KeyAction.CommitText("!")
|
||||
action = KeyAction.CommitText("!"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("?"),
|
||||
action = KeyAction.CommitText("?")
|
||||
action = KeyAction.CommitText("?"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("@"),
|
||||
action = KeyAction.CommitText("@")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("@"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("i"),
|
||||
action = KeyAction.CommitText("i"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ì"),
|
||||
action = KeyAction.CommitText("ì")
|
||||
action = KeyAction.CommitText("ì"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("e"),
|
||||
action = KeyAction.CommitText("e"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("è"),
|
||||
action = KeyAction.CommitText("è")
|
||||
action = KeyAction.CommitText("è"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("f"),
|
||||
action = KeyAction.CommitText("f")
|
||||
action = KeyAction.CommitText("f"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("é"),
|
||||
action = KeyAction.CommitText("é")
|
||||
action = KeyAction.CommitText("é"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("d"),
|
||||
action = KeyAction.CommitText("d")
|
||||
action = KeyAction.CommitText("d"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("g"),
|
||||
action = KeyAction.CommitText("g")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("g"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_IT_V1_SHIFTED = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("S"),
|
||||
action = KeyAction.CommitText("S"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Z"),
|
||||
action = KeyAction.CommitText("Z")
|
||||
action = KeyAction.CommitText("Z"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("V"),
|
||||
action = KeyAction.CommitText("V")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("V"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("R"),
|
||||
action = KeyAction.CommitText("R"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("P"),
|
||||
action = KeyAction.CommitText("P")
|
||||
action = KeyAction.CommitText("P"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Q"),
|
||||
action = KeyAction.CommitText("Q")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Q"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("O"),
|
||||
action = KeyAction.CommitText("O"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ò"),
|
||||
action = KeyAction.CommitText("Ò")
|
||||
action = KeyAction.CommitText("Ò"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ù"),
|
||||
action = KeyAction.CommitText("Ù")
|
||||
action = KeyAction.CommitText("Ù"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("U"),
|
||||
action = KeyAction.CommitText("U")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("U"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("N"),
|
||||
action = KeyAction.CommitText("N"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("M"),
|
||||
action = KeyAction.CommitText("M")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("M"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("L"),
|
||||
action = KeyAction.CommitText("L"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("J"),
|
||||
action = KeyAction.CommitText("J")
|
||||
action = KeyAction.CommitText("J"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Y"),
|
||||
action = KeyAction.CommitText("Y")
|
||||
action = KeyAction.CommitText("Y"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("X"),
|
||||
action = KeyAction.CommitText("X")
|
||||
action = KeyAction.CommitText("X"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("W"),
|
||||
action = KeyAction.CommitText("W")
|
||||
action = KeyAction.CommitText("W"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("K"),
|
||||
action = KeyAction.CommitText("K")
|
||||
action = KeyAction.CommitText("K"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("H"),
|
||||
action = KeyAction.CommitText("H")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("H"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("A"),
|
||||
action = KeyAction.CommitText("A"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("À"),
|
||||
action = KeyAction.CommitText("À")
|
||||
action = KeyAction.CommitText("À"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("B"),
|
||||
action = KeyAction.CommitText("B")
|
||||
action = KeyAction.CommitText("B"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("C"),
|
||||
action = KeyAction.CommitText("C")
|
||||
action = KeyAction.CommitText("C"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.KeyboardCapslock),
|
||||
capsModeDisplay = KeyDisplay.IconDisplay(Icons.Outlined.Copyright),
|
||||
action = KeyAction.ToggleCapsLock,
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropDown),
|
||||
action = KeyAction.ToggleShiftMode(false),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("T"),
|
||||
action = KeyAction.CommitText("T"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("!"),
|
||||
action = KeyAction.CommitText("!")
|
||||
action = KeyAction.CommitText("!"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("?"),
|
||||
action = KeyAction.CommitText("?")
|
||||
action = KeyAction.CommitText("?"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("@"),
|
||||
action = KeyAction.CommitText("@")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("@"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("I"),
|
||||
action = KeyAction.CommitText("I"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ì"),
|
||||
action = KeyAction.CommitText("Ì")
|
||||
action = KeyAction.CommitText("Ì"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("E"),
|
||||
action = KeyAction.CommitText("E"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("È"),
|
||||
action = KeyAction.CommitText("È")
|
||||
action = KeyAction.CommitText("È"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("É"),
|
||||
action = KeyAction.CommitText("É")
|
||||
action = KeyAction.CommitText("É"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("D"),
|
||||
action = KeyAction.CommitText("D")
|
||||
action = KeyAction.CommitText("D"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("F"),
|
||||
action = KeyAction.CommitText("F")
|
||||
action = KeyAction.CommitText("F"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("G"),
|
||||
action = KeyAction.CommitText("G")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("G"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_IT_V1_KEYBOARD_MODES: Map<KeyboardMode, KeyboardC> = mapOf(
|
||||
KeyboardMode.MAIN to THUMBKEY_IT_V1_MAIN,
|
||||
KeyboardMode.SHIFTED to THUMBKEY_IT_V1_SHIFTED,
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD,
|
||||
)
|
||||
|
@ -17,429 +17,429 @@ import com.dessalines.thumbkey.utils.SwipeDirection
|
||||
import com.dessalines.thumbkey.utils.SwipeNWay
|
||||
|
||||
val THUMBKEY_NL_V1_MAIN = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("r"),
|
||||
action = KeyAction.CommitText("r"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("h"),
|
||||
action = KeyAction.CommitText("h")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("h"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("s"),
|
||||
action = KeyAction.CommitText("s"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_VERTICAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("p"),
|
||||
action = KeyAction.CommitText("p")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("p"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("a"),
|
||||
action = KeyAction.CommitText("a"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("k"),
|
||||
action = KeyAction.CommitText("k")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("k"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("n"),
|
||||
action = KeyAction.CommitText("n"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("c"),
|
||||
action = KeyAction.CommitText("c")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("c"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("l"),
|
||||
action = KeyAction.CommitText("l"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("x"),
|
||||
action = KeyAction.CommitText("x")
|
||||
action = KeyAction.CommitText("x"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("f"),
|
||||
action = KeyAction.CommitText("f")
|
||||
action = KeyAction.CommitText("f"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("j"),
|
||||
action = KeyAction.CommitText("j")
|
||||
action = KeyAction.CommitText("j"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("v"),
|
||||
action = KeyAction.CommitText("v")
|
||||
action = KeyAction.CommitText("v"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("b"),
|
||||
action = KeyAction.CommitText("b")
|
||||
action = KeyAction.CommitText("b"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("w"),
|
||||
action = KeyAction.CommitText("w")
|
||||
action = KeyAction.CommitText("w"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("z"),
|
||||
action = KeyAction.CommitText("z")
|
||||
action = KeyAction.CommitText("z"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("y"),
|
||||
action = KeyAction.CommitText("y")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("y"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("i"),
|
||||
action = KeyAction.CommitText("i"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("g"),
|
||||
action = KeyAction.CommitText("g")
|
||||
action = KeyAction.CommitText("g"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropUp),
|
||||
action = KeyAction.ToggleShiftMode(true),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("t"),
|
||||
action = KeyAction.CommitText("t"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("m"),
|
||||
action = KeyAction.CommitText("m")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("m"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("o"),
|
||||
action = KeyAction.CommitText("o"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("u"),
|
||||
action = KeyAction.CommitText("u")
|
||||
action = KeyAction.CommitText("u"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("q"),
|
||||
action = KeyAction.CommitText("q")
|
||||
action = KeyAction.CommitText("q"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("*"),
|
||||
action = KeyAction.CommitText("*"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("e"),
|
||||
action = KeyAction.CommitText("e"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("d"),
|
||||
action = KeyAction.CommitText("d")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("d"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_NL_V1_SHIFTED = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("R"),
|
||||
action = KeyAction.CommitText("R"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("H"),
|
||||
action = KeyAction.CommitText("H")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("H"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("S"),
|
||||
action = KeyAction.CommitText("S"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_VERTICAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("P"),
|
||||
action = KeyAction.CommitText("P")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("P"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("A"),
|
||||
action = KeyAction.CommitText("A"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("K"),
|
||||
action = KeyAction.CommitText("K")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("K"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("N"),
|
||||
action = KeyAction.CommitText("N"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("C"),
|
||||
action = KeyAction.CommitText("C")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("C"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("L"),
|
||||
action = KeyAction.CommitText("L"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("X"),
|
||||
action = KeyAction.CommitText("X")
|
||||
action = KeyAction.CommitText("X"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("F"),
|
||||
action = KeyAction.CommitText("F")
|
||||
action = KeyAction.CommitText("F"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("J"),
|
||||
action = KeyAction.CommitText("J")
|
||||
action = KeyAction.CommitText("J"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("V"),
|
||||
action = KeyAction.CommitText("V")
|
||||
action = KeyAction.CommitText("V"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("B"),
|
||||
action = KeyAction.CommitText("B")
|
||||
action = KeyAction.CommitText("B"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("W"),
|
||||
action = KeyAction.CommitText("W")
|
||||
action = KeyAction.CommitText("W"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Z"),
|
||||
action = KeyAction.CommitText("Z")
|
||||
action = KeyAction.CommitText("Z"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Y"),
|
||||
action = KeyAction.CommitText("Y")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Y"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("I"),
|
||||
action = KeyAction.CommitText("I"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("G"),
|
||||
action = KeyAction.CommitText("G")
|
||||
action = KeyAction.CommitText("G"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropDown),
|
||||
action = KeyAction.ToggleShiftMode(false),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.KeyboardCapslock),
|
||||
capsModeDisplay = KeyDisplay.IconDisplay(Icons.Outlined.Copyright),
|
||||
action = KeyAction.ToggleCapsLock,
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("T"),
|
||||
action = KeyAction.CommitText("T"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("M"),
|
||||
action = KeyAction.CommitText("M")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("M"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("O"),
|
||||
action = KeyAction.CommitText("O"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("U"),
|
||||
action = KeyAction.CommitText("U")
|
||||
action = KeyAction.CommitText("U"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Q"),
|
||||
action = KeyAction.CommitText("Q")
|
||||
action = KeyAction.CommitText("Q"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("*"),
|
||||
action = KeyAction.CommitText("*"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("E"),
|
||||
action = KeyAction.CommitText("E"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("D"),
|
||||
action = KeyAction.CommitText("D")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("D"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_NL_V1_KEYBOARD_MODES: Map<KeyboardMode, KeyboardC> = mapOf(
|
||||
KeyboardMode.MAIN to THUMBKEY_NL_V1_MAIN,
|
||||
KeyboardMode.SHIFTED to THUMBKEY_NL_V1_SHIFTED,
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD,
|
||||
)
|
||||
|
@ -17,499 +17,499 @@ import com.dessalines.thumbkey.utils.SwipeDirection
|
||||
import com.dessalines.thumbkey.utils.SwipeNWay
|
||||
|
||||
val THUMBKEY_PL_V2_MAIN = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("r"),
|
||||
action = KeyAction.CommitText("r"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("p"),
|
||||
action = KeyAction.CommitText("p")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("p"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("s"),
|
||||
action = KeyAction.CommitText("s"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("y"),
|
||||
action = KeyAction.CommitText("y")
|
||||
action = KeyAction.CommitText("y"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ś"),
|
||||
action = KeyAction.CommitText("ś")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ś"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("o"),
|
||||
action = KeyAction.CommitText("o"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("u"),
|
||||
action = KeyAction.CommitText("u")
|
||||
action = KeyAction.CommitText("u"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ó"),
|
||||
action = KeyAction.CommitText("ó")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ó"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("n"),
|
||||
action = KeyAction.CommitText("n"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("d"),
|
||||
action = KeyAction.CommitText("d")
|
||||
action = KeyAction.CommitText("d"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ń"),
|
||||
action = KeyAction.CommitText("ń")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ń"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("w"),
|
||||
action = KeyAction.CommitText("w"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("h"),
|
||||
action = KeyAction.CommitText("h")
|
||||
action = KeyAction.CommitText("h"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("q"),
|
||||
action = KeyAction.CommitText("q")
|
||||
action = KeyAction.CommitText("q"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ł"),
|
||||
action = KeyAction.CommitText("ł")
|
||||
action = KeyAction.CommitText("ł"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("l"),
|
||||
action = KeyAction.CommitText("l")
|
||||
action = KeyAction.CommitText("l"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("j"),
|
||||
action = KeyAction.CommitText("j")
|
||||
action = KeyAction.CommitText("j"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("f"),
|
||||
action = KeyAction.CommitText("f")
|
||||
action = KeyAction.CommitText("f"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("b"),
|
||||
action = KeyAction.CommitText("b")
|
||||
action = KeyAction.CommitText("b"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("g"),
|
||||
action = KeyAction.CommitText("g")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("g"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("i"),
|
||||
action = KeyAction.CommitText("i"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("c"),
|
||||
action = KeyAction.CommitText("c")
|
||||
action = KeyAction.CommitText("c"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropUp),
|
||||
action = KeyAction.ToggleShiftMode(true),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ć"),
|
||||
action = KeyAction.CommitText("ć")
|
||||
)
|
||||
action = KeyAction.CommitText("ć"),
|
||||
),
|
||||
|
||||
)
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("z"),
|
||||
action = KeyAction.CommitText("z"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("k"),
|
||||
action = KeyAction.CommitText("k")
|
||||
action = KeyAction.CommitText("k"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ż"),
|
||||
action = KeyAction.CommitText("ż")
|
||||
action = KeyAction.CommitText("ż"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ź"),
|
||||
action = KeyAction.CommitText("ź")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ź"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("e"),
|
||||
action = KeyAction.CommitText("e"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("*"),
|
||||
action = KeyAction.CommitText("*"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("m"),
|
||||
action = KeyAction.CommitText("m")
|
||||
action = KeyAction.CommitText("m"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("v"),
|
||||
action = KeyAction.CommitText("v")
|
||||
action = KeyAction.CommitText("v"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("x"),
|
||||
action = KeyAction.CommitText("x")
|
||||
action = KeyAction.CommitText("x"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ę"),
|
||||
action = KeyAction.CommitText("ę")
|
||||
action = KeyAction.CommitText("ę"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("a"),
|
||||
action = KeyAction.CommitText("a"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("t"),
|
||||
action = KeyAction.CommitText("t")
|
||||
action = KeyAction.CommitText("t"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ą"),
|
||||
action = KeyAction.CommitText("ą")
|
||||
)
|
||||
action = KeyAction.CommitText("ą"),
|
||||
),
|
||||
|
||||
)
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_PL_V2_SHIFTED = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("R"),
|
||||
action = KeyAction.CommitText("R"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("P"),
|
||||
action = KeyAction.CommitText("P")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("P"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("S"),
|
||||
action = KeyAction.CommitText("S"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Y"),
|
||||
action = KeyAction.CommitText("Y")
|
||||
action = KeyAction.CommitText("Y"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ś"),
|
||||
action = KeyAction.CommitText("Ś")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Ś"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("O"),
|
||||
action = KeyAction.CommitText("O"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("U"),
|
||||
action = KeyAction.CommitText("U")
|
||||
action = KeyAction.CommitText("U"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ó"),
|
||||
action = KeyAction.CommitText("Ó")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Ó"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("N"),
|
||||
action = KeyAction.CommitText("N"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("D"),
|
||||
action = KeyAction.CommitText("D")
|
||||
action = KeyAction.CommitText("D"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ń"),
|
||||
action = KeyAction.CommitText("Ń")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Ń"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("W"),
|
||||
action = KeyAction.CommitText("W"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("H"),
|
||||
action = KeyAction.CommitText("H")
|
||||
action = KeyAction.CommitText("H"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Q"),
|
||||
action = KeyAction.CommitText("Q")
|
||||
action = KeyAction.CommitText("Q"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ł"),
|
||||
action = KeyAction.CommitText("Ł")
|
||||
action = KeyAction.CommitText("Ł"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("L"),
|
||||
action = KeyAction.CommitText("L")
|
||||
action = KeyAction.CommitText("L"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("J"),
|
||||
action = KeyAction.CommitText("J")
|
||||
action = KeyAction.CommitText("J"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("F"),
|
||||
action = KeyAction.CommitText("F")
|
||||
action = KeyAction.CommitText("F"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("B"),
|
||||
action = KeyAction.CommitText("B")
|
||||
action = KeyAction.CommitText("B"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("G"),
|
||||
action = KeyAction.CommitText("G")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("G"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("I"),
|
||||
action = KeyAction.CommitText("I"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("C"),
|
||||
action = KeyAction.CommitText("C")
|
||||
action = KeyAction.CommitText("C"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropDown),
|
||||
action = KeyAction.ToggleShiftMode(false),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.KeyboardCapslock),
|
||||
capsModeDisplay = KeyDisplay.IconDisplay(Icons.Outlined.Copyright),
|
||||
action = KeyAction.ToggleCapsLock,
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ć"),
|
||||
action = KeyAction.CommitText("Ć")
|
||||
)
|
||||
action = KeyAction.CommitText("Ć"),
|
||||
),
|
||||
|
||||
)
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("Z"),
|
||||
action = KeyAction.CommitText("Z"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("K"),
|
||||
action = KeyAction.CommitText("K")
|
||||
action = KeyAction.CommitText("K"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ż"),
|
||||
action = KeyAction.CommitText("Ż")
|
||||
action = KeyAction.CommitText("Ż"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ź"),
|
||||
action = KeyAction.CommitText("Ź")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Ź"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("E"),
|
||||
action = KeyAction.CommitText("E"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("*"),
|
||||
action = KeyAction.CommitText("*"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("M"),
|
||||
action = KeyAction.CommitText("M")
|
||||
action = KeyAction.CommitText("M"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("V"),
|
||||
action = KeyAction.CommitText("V")
|
||||
action = KeyAction.CommitText("V"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("X"),
|
||||
action = KeyAction.CommitText("X")
|
||||
action = KeyAction.CommitText("X"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ę"),
|
||||
action = KeyAction.CommitText("Ę")
|
||||
action = KeyAction.CommitText("Ę"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("A"),
|
||||
action = KeyAction.CommitText("A"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("T"),
|
||||
action = KeyAction.CommitText("T")
|
||||
action = KeyAction.CommitText("T"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ą"),
|
||||
action = KeyAction.CommitText("Ą")
|
||||
)
|
||||
action = KeyAction.CommitText("Ą"),
|
||||
),
|
||||
|
||||
)
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_PL_V2_KEYBOARD_MODES: Map<KeyboardMode, KeyboardC> = mapOf(
|
||||
KeyboardMode.MAIN to THUMBKEY_PL_V2_MAIN,
|
||||
KeyboardMode.SHIFTED to THUMBKEY_PL_V2_SHIFTED,
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD,
|
||||
)
|
||||
|
@ -17,543 +17,543 @@ import com.dessalines.thumbkey.utils.SwipeDirection
|
||||
import com.dessalines.thumbkey.utils.SwipeNWay
|
||||
|
||||
val THUMBKEY_PT_V1_MAIN = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("n"),
|
||||
action = KeyAction.CommitText("n"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("v"),
|
||||
action = KeyAction.CommitText("v")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("v"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("m"),
|
||||
action = KeyAction.CommitText("m"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_VERTICAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("h"),
|
||||
action = KeyAction.CommitText("h")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("h"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("o"),
|
||||
action = KeyAction.CommitText("o"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("c"),
|
||||
action = KeyAction.CommitText("c")
|
||||
action = KeyAction.CommitText("c"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ç"),
|
||||
action = KeyAction.CommitText("ç"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ó"),
|
||||
action = KeyAction.CommitText("ó"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ô"),
|
||||
action = KeyAction.CommitText("ô"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("õ"),
|
||||
action = KeyAction.CommitText("õ"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("r"),
|
||||
action = KeyAction.CommitText("r"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("p"),
|
||||
action = KeyAction.CommitText("p")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("p"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("d"),
|
||||
action = KeyAction.CommitText("d"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("x"),
|
||||
action = KeyAction.CommitText("x")
|
||||
action = KeyAction.CommitText("x"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("w"),
|
||||
action = KeyAction.CommitText("w")
|
||||
action = KeyAction.CommitText("w"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("f"),
|
||||
action = KeyAction.CommitText("f")
|
||||
action = KeyAction.CommitText("f"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("b"),
|
||||
action = KeyAction.CommitText("b")
|
||||
action = KeyAction.CommitText("b"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("q"),
|
||||
action = KeyAction.CommitText("q")
|
||||
action = KeyAction.CommitText("q"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("k"),
|
||||
action = KeyAction.CommitText("k")
|
||||
action = KeyAction.CommitText("k"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("z"),
|
||||
action = KeyAction.CommitText("z")
|
||||
action = KeyAction.CommitText("z"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("j"),
|
||||
action = KeyAction.CommitText("j")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("j"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("e"),
|
||||
action = KeyAction.CommitText("e"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("t"),
|
||||
action = KeyAction.CommitText("t")
|
||||
action = KeyAction.CommitText("t"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropUp),
|
||||
action = KeyAction.ToggleShiftMode(true),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("é"),
|
||||
action = KeyAction.CommitText("é"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ê"),
|
||||
action = KeyAction.CommitText("ê"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("s"),
|
||||
action = KeyAction.CommitText("s"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("l"),
|
||||
action = KeyAction.CommitText("l")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("l"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("i"),
|
||||
action = KeyAction.CommitText("i"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("g"),
|
||||
action = KeyAction.CommitText("g")
|
||||
action = KeyAction.CommitText("g"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("í"),
|
||||
action = KeyAction.CommitText("í"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("y"),
|
||||
action = KeyAction.CommitText("y")
|
||||
action = KeyAction.CommitText("y"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("a"),
|
||||
action = KeyAction.CommitText("a"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("u"),
|
||||
action = KeyAction.CommitText("u")
|
||||
action = KeyAction.CommitText("u"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ú"),
|
||||
action = KeyAction.CommitText("ú"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("á"),
|
||||
action = KeyAction.CommitText("á"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("â"),
|
||||
action = KeyAction.CommitText("â"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("à"),
|
||||
action = KeyAction.CommitText("à"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ã"),
|
||||
action = KeyAction.CommitText("ã"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_PT_V1_SHIFTED = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("N"),
|
||||
action = KeyAction.CommitText("N"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("V"),
|
||||
action = KeyAction.CommitText("V")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("V"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("M"),
|
||||
action = KeyAction.CommitText("M"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_VERTICAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("H"),
|
||||
action = KeyAction.CommitText("H")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("H"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("O"),
|
||||
action = KeyAction.CommitText("O"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("C"),
|
||||
action = KeyAction.CommitText("C")
|
||||
action = KeyAction.CommitText("C"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ç"),
|
||||
action = KeyAction.CommitText("Ç"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ó"),
|
||||
action = KeyAction.CommitText("Ó"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ô"),
|
||||
action = KeyAction.CommitText("Ô"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Õ"),
|
||||
action = KeyAction.CommitText("Õ"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("R"),
|
||||
action = KeyAction.CommitText("R"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("P"),
|
||||
action = KeyAction.CommitText("P")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("P"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("D"),
|
||||
action = KeyAction.CommitText("D"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("X"),
|
||||
action = KeyAction.CommitText("X")
|
||||
action = KeyAction.CommitText("X"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("W"),
|
||||
action = KeyAction.CommitText("W")
|
||||
action = KeyAction.CommitText("W"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("F"),
|
||||
action = KeyAction.CommitText("F")
|
||||
action = KeyAction.CommitText("F"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("B"),
|
||||
action = KeyAction.CommitText("B")
|
||||
action = KeyAction.CommitText("B"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Q"),
|
||||
action = KeyAction.CommitText("Q")
|
||||
action = KeyAction.CommitText("Q"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("K"),
|
||||
action = KeyAction.CommitText("K")
|
||||
action = KeyAction.CommitText("K"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Z"),
|
||||
action = KeyAction.CommitText("Z")
|
||||
action = KeyAction.CommitText("Z"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("J"),
|
||||
action = KeyAction.CommitText("J")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("J"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("E"),
|
||||
action = KeyAction.CommitText("E"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("T"),
|
||||
action = KeyAction.CommitText("T")
|
||||
action = KeyAction.CommitText("T"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ê"),
|
||||
action = KeyAction.CommitText("Ê"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("É"),
|
||||
action = KeyAction.CommitText("É"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropDown),
|
||||
action = KeyAction.ToggleShiftMode(false),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.KeyboardCapslock),
|
||||
capsModeDisplay = KeyDisplay.IconDisplay(Icons.Outlined.Copyright),
|
||||
action = KeyAction.ToggleCapsLock,
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("S"),
|
||||
action = KeyAction.CommitText("S"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("L"),
|
||||
action = KeyAction.CommitText("L")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("L"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("I"),
|
||||
action = KeyAction.CommitText("I"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("G"),
|
||||
action = KeyAction.CommitText("G")
|
||||
action = KeyAction.CommitText("G"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Í"),
|
||||
action = KeyAction.CommitText("Í"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Y"),
|
||||
action = KeyAction.CommitText("Y")
|
||||
action = KeyAction.CommitText("Y"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("A"),
|
||||
action = KeyAction.CommitText("A"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("U"),
|
||||
action = KeyAction.CommitText("U")
|
||||
action = KeyAction.CommitText("U"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ú"),
|
||||
action = KeyAction.CommitText("Ú"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Á"),
|
||||
action = KeyAction.CommitText("Á"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Â"),
|
||||
action = KeyAction.CommitText("Â"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("À"),
|
||||
action = KeyAction.CommitText("À"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ã"),
|
||||
action = KeyAction.CommitText("Ã"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_PT_V1_KEYBOARD_MODES: Map<KeyboardMode, KeyboardC> = mapOf(
|
||||
KeyboardMode.MAIN to THUMBKEY_PT_V1_MAIN,
|
||||
KeyboardMode.SHIFTED to THUMBKEY_PT_V1_SHIFTED,
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD,
|
||||
)
|
||||
|
@ -17,504 +17,504 @@ import com.dessalines.thumbkey.utils.SwipeDirection
|
||||
import com.dessalines.thumbkey.utils.SwipeNWay
|
||||
|
||||
val THUMBKEY_RU_V2_MAIN = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("с"),
|
||||
action = KeyAction.CommitText("с"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("щ"),
|
||||
action = KeyAction.CommitText("щ")
|
||||
action = KeyAction.CommitText("щ"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("й"),
|
||||
action = KeyAction.CommitText("й")
|
||||
action = KeyAction.CommitText("й"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("э"),
|
||||
action = KeyAction.CommitText("э")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("э"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("р"),
|
||||
action = KeyAction.CommitText("р"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_VERTICAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("х"),
|
||||
action = KeyAction.CommitText("х")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("х"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("а"),
|
||||
action = KeyAction.CommitText("а"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ж"),
|
||||
action = KeyAction.CommitText("ж")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ж"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("н"),
|
||||
action = KeyAction.CommitText("н"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("м"),
|
||||
action = KeyAction.CommitText("м")
|
||||
action = KeyAction.CommitText("м"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("л"),
|
||||
action = KeyAction.CommitText("л")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("л"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("в"),
|
||||
action = KeyAction.CommitText("в"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("я"),
|
||||
action = KeyAction.CommitText("я")
|
||||
action = KeyAction.CommitText("я"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ы"),
|
||||
action = KeyAction.CommitText("ы")
|
||||
action = KeyAction.CommitText("ы"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ь"),
|
||||
action = KeyAction.CommitText("ь")
|
||||
action = KeyAction.CommitText("ь"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("п"),
|
||||
action = KeyAction.CommitText("п")
|
||||
action = KeyAction.CommitText("п"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("у"),
|
||||
action = KeyAction.CommitText("у")
|
||||
action = KeyAction.CommitText("у"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("з"),
|
||||
action = KeyAction.CommitText("з")
|
||||
action = KeyAction.CommitText("з"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("г"),
|
||||
action = KeyAction.CommitText("г")
|
||||
action = KeyAction.CommitText("г"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("к"),
|
||||
action = KeyAction.CommitText("к")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("к"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("е"),
|
||||
action = KeyAction.CommitText("е"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ф"),
|
||||
action = KeyAction.CommitText("ф")
|
||||
action = KeyAction.CommitText("ф"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropUp),
|
||||
action = KeyAction.ToggleShiftMode(true),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropDown),
|
||||
action = KeyAction.ToggleShiftMode(false),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("т"),
|
||||
action = KeyAction.CommitText("т"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ч"),
|
||||
action = KeyAction.CommitText("ч")
|
||||
action = KeyAction.CommitText("ч"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ш"),
|
||||
action = KeyAction.CommitText("ш")
|
||||
action = KeyAction.CommitText("ш"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ъ"),
|
||||
action = KeyAction.CommitText("ъ")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ъ"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("и"),
|
||||
action = KeyAction.CommitText("и"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("б"),
|
||||
action = KeyAction.CommitText("б")
|
||||
action = KeyAction.CommitText("б"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ц"),
|
||||
action = KeyAction.CommitText("ц")
|
||||
action = KeyAction.CommitText("ц"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("\""),
|
||||
action = KeyAction.CommitText("\""),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("*"),
|
||||
action = KeyAction.CommitText("*"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("о"),
|
||||
action = KeyAction.CommitText("о"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("д"),
|
||||
action = KeyAction.CommitText("д")
|
||||
action = KeyAction.CommitText("д"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ю"),
|
||||
action = KeyAction.CommitText("ю")
|
||||
action = KeyAction.CommitText("ю"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ё"),
|
||||
action = KeyAction.CommitText("ё")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ё"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_RU_V2_SHIFTED = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("С"),
|
||||
action = KeyAction.CommitText("С"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Щ"),
|
||||
action = KeyAction.CommitText("Щ")
|
||||
action = KeyAction.CommitText("Щ"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Й"),
|
||||
action = KeyAction.CommitText("Й")
|
||||
action = KeyAction.CommitText("Й"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Э"),
|
||||
action = KeyAction.CommitText("Э")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Э"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("Р"),
|
||||
action = KeyAction.CommitText("Р"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_VERTICAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Х"),
|
||||
action = KeyAction.CommitText("Х")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Х"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("А"),
|
||||
action = KeyAction.CommitText("А"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ж"),
|
||||
action = KeyAction.CommitText("Ж")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Ж"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("Н"),
|
||||
action = KeyAction.CommitText("Н"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("М"),
|
||||
action = KeyAction.CommitText("М")
|
||||
action = KeyAction.CommitText("М"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Л"),
|
||||
action = KeyAction.CommitText("Л")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Л"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("В"),
|
||||
action = KeyAction.CommitText("В"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Я"),
|
||||
action = KeyAction.CommitText("Я")
|
||||
action = KeyAction.CommitText("Я"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ы"),
|
||||
action = KeyAction.CommitText("Ы")
|
||||
action = KeyAction.CommitText("Ы"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ь"),
|
||||
action = KeyAction.CommitText("Ь")
|
||||
action = KeyAction.CommitText("Ь"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("П"),
|
||||
action = KeyAction.CommitText("П")
|
||||
action = KeyAction.CommitText("П"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("У"),
|
||||
action = KeyAction.CommitText("У")
|
||||
action = KeyAction.CommitText("У"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("З"),
|
||||
action = KeyAction.CommitText("З")
|
||||
action = KeyAction.CommitText("З"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Г"),
|
||||
action = KeyAction.CommitText("Г")
|
||||
action = KeyAction.CommitText("Г"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("К"),
|
||||
action = KeyAction.CommitText("К")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("К"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("Е"),
|
||||
action = KeyAction.CommitText("Е"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_CROSS,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ф"),
|
||||
action = KeyAction.CommitText("Ф")
|
||||
action = KeyAction.CommitText("Ф"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.KeyboardCapslock),
|
||||
capsModeDisplay = KeyDisplay.IconDisplay(Icons.Outlined.Copyright),
|
||||
action = KeyAction.ToggleCapsLock,
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropDown),
|
||||
action = KeyAction.ToggleShiftMode(false),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("Т"),
|
||||
action = KeyAction.CommitText("Т"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ч"),
|
||||
action = KeyAction.CommitText("Ч")
|
||||
action = KeyAction.CommitText("Ч"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ш"),
|
||||
action = KeyAction.CommitText("Ш")
|
||||
action = KeyAction.CommitText("Ш"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ъ"),
|
||||
action = KeyAction.CommitText("Ъ")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Ъ"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("И"),
|
||||
action = KeyAction.CommitText("И"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Б"),
|
||||
action = KeyAction.CommitText("Б")
|
||||
action = KeyAction.CommitText("Б"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ц"),
|
||||
action = KeyAction.CommitText("Ц")
|
||||
action = KeyAction.CommitText("Ц"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("\""),
|
||||
action = KeyAction.CommitText("\""),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("*"),
|
||||
action = KeyAction.CommitText("*"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("О"),
|
||||
action = KeyAction.CommitText("О"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Д"),
|
||||
action = KeyAction.CommitText("Д")
|
||||
action = KeyAction.CommitText("Д"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ю"),
|
||||
action = KeyAction.CommitText("Ю")
|
||||
action = KeyAction.CommitText("Ю"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ё"),
|
||||
action = KeyAction.CommitText("Ё")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Ё"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_RU_V2_KEYBOARD_MODES: Map<KeyboardMode, KeyboardC> = mapOf(
|
||||
KeyboardMode.MAIN to THUMBKEY_RU_V2_MAIN,
|
||||
KeyboardMode.SHIFTED to THUMBKEY_RU_V2_SHIFTED,
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD,
|
||||
)
|
||||
|
@ -16,786 +16,786 @@ import com.dessalines.thumbkey.utils.KeyboardMode
|
||||
import com.dessalines.thumbkey.utils.SwipeDirection
|
||||
|
||||
val THUMBKEY_RU_V2_SYMBOLS_MAIN = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("с"),
|
||||
action = KeyAction.CommitText("с"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("щ"),
|
||||
action = KeyAction.CommitText("щ")
|
||||
action = KeyAction.CommitText("щ"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("й"),
|
||||
action = KeyAction.CommitText("й")
|
||||
action = KeyAction.CommitText("й"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("э"),
|
||||
action = KeyAction.CommitText("э")
|
||||
action = KeyAction.CommitText("э"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("$"),
|
||||
action = KeyAction.CommitText("$"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("р"),
|
||||
action = KeyAction.CommitText("р"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("х"),
|
||||
action = KeyAction.CommitText("х")
|
||||
action = KeyAction.CommitText("х"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("`"),
|
||||
action = KeyAction.CommitText("`"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("^"),
|
||||
action = KeyAction.CommitText("^"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("´"),
|
||||
action = KeyAction.CommitText("´"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("!"),
|
||||
action = KeyAction.CommitText("!"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("\\"),
|
||||
action = KeyAction.CommitText("\\"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("/"),
|
||||
action = KeyAction.CommitText("/"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("+"),
|
||||
action = KeyAction.CommitText("+"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("а"),
|
||||
action = KeyAction.CommitText("а"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ж"),
|
||||
action = KeyAction.CommitText("ж")
|
||||
action = KeyAction.CommitText("ж"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("?"),
|
||||
action = KeyAction.CommitText("?"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("€"),
|
||||
action = KeyAction.CommitText("€"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("="),
|
||||
action = KeyAction.CommitText("="),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("н"),
|
||||
action = KeyAction.CommitText("н"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("м"),
|
||||
action = KeyAction.CommitText("м")
|
||||
action = KeyAction.CommitText("м"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("л"),
|
||||
action = KeyAction.CommitText("л")
|
||||
action = KeyAction.CommitText("л"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("{"),
|
||||
action = KeyAction.CommitText("{"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("("),
|
||||
action = KeyAction.CommitText("("),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("["),
|
||||
action = KeyAction.CommitText("["),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("_"),
|
||||
action = KeyAction.CommitText("_"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("%"),
|
||||
action = KeyAction.CommitText("%"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("в"),
|
||||
action = KeyAction.CommitText("в"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("я"),
|
||||
action = KeyAction.CommitText("я")
|
||||
action = KeyAction.CommitText("я"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ы"),
|
||||
action = KeyAction.CommitText("ы")
|
||||
action = KeyAction.CommitText("ы"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ь"),
|
||||
action = KeyAction.CommitText("ь")
|
||||
action = KeyAction.CommitText("ь"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("п"),
|
||||
action = KeyAction.CommitText("п")
|
||||
action = KeyAction.CommitText("п"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("у"),
|
||||
action = KeyAction.CommitText("у")
|
||||
action = KeyAction.CommitText("у"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("з"),
|
||||
action = KeyAction.CommitText("з")
|
||||
action = KeyAction.CommitText("з"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("г"),
|
||||
action = KeyAction.CommitText("г")
|
||||
action = KeyAction.CommitText("г"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("к"),
|
||||
action = KeyAction.CommitText("к")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("к"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("е"),
|
||||
action = KeyAction.CommitText("е"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ф"),
|
||||
action = KeyAction.CommitText("ф")
|
||||
action = KeyAction.CommitText("ф"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropUp),
|
||||
action = KeyAction.ToggleShiftMode(true),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropDown),
|
||||
action = KeyAction.ToggleShiftMode(false),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("|"),
|
||||
action = KeyAction.CommitText("|"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("}"),
|
||||
action = KeyAction.CommitText("}"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(")"),
|
||||
action = KeyAction.CommitText(")"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("]"),
|
||||
action = KeyAction.CommitText("]"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("@"),
|
||||
action = KeyAction.CommitText("@"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("т"),
|
||||
action = KeyAction.CommitText("т"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ч"),
|
||||
action = KeyAction.CommitText("ч")
|
||||
action = KeyAction.CommitText("ч"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ш"),
|
||||
action = KeyAction.CommitText("ш")
|
||||
action = KeyAction.CommitText("ш"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ъ"),
|
||||
action = KeyAction.CommitText("ъ")
|
||||
action = KeyAction.CommitText("ъ"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("~"),
|
||||
action = KeyAction.CommitText("~"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(":"),
|
||||
action = KeyAction.CommitText(":"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("<"),
|
||||
action = KeyAction.CommitText("<"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("и"),
|
||||
action = KeyAction.CommitText("и"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("б"),
|
||||
action = KeyAction.CommitText("б")
|
||||
action = KeyAction.CommitText("б"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ц"),
|
||||
action = KeyAction.CommitText("ц")
|
||||
action = KeyAction.CommitText("ц"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("\""),
|
||||
action = KeyAction.CommitText("\""),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("*"),
|
||||
action = KeyAction.CommitText("*"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("о"),
|
||||
action = KeyAction.CommitText("о"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("д"),
|
||||
action = KeyAction.CommitText("д")
|
||||
action = KeyAction.CommitText("д"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ю"),
|
||||
action = KeyAction.CommitText("ю")
|
||||
action = KeyAction.CommitText("ю"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ё"),
|
||||
action = KeyAction.CommitText("ё")
|
||||
action = KeyAction.CommitText("ё"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("&"),
|
||||
action = KeyAction.CommitText("&"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("°"),
|
||||
action = KeyAction.CommitText("°"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(">"),
|
||||
action = KeyAction.CommitText(">"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(";"),
|
||||
action = KeyAction.CommitText(";"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("#"),
|
||||
action = KeyAction.CommitText("#"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_RU_V2_SYMBOLS_SHIFTED = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("С"),
|
||||
action = KeyAction.CommitText("С"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Щ"),
|
||||
action = KeyAction.CommitText("Щ")
|
||||
action = KeyAction.CommitText("Щ"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Й"),
|
||||
action = KeyAction.CommitText("Й")
|
||||
action = KeyAction.CommitText("Й"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Э"),
|
||||
action = KeyAction.CommitText("Э")
|
||||
action = KeyAction.CommitText("Э"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("$"),
|
||||
action = KeyAction.CommitText("$"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("Р"),
|
||||
action = KeyAction.CommitText("Р"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Х"),
|
||||
action = KeyAction.CommitText("Х")
|
||||
action = KeyAction.CommitText("Х"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("`"),
|
||||
action = KeyAction.CommitText("`"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("^"),
|
||||
action = KeyAction.CommitText("^"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("´"),
|
||||
action = KeyAction.CommitText("´"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("!"),
|
||||
action = KeyAction.CommitText("!"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("\\"),
|
||||
action = KeyAction.CommitText("\\"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("/"),
|
||||
action = KeyAction.CommitText("/"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("+"),
|
||||
action = KeyAction.CommitText("+"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("А"),
|
||||
action = KeyAction.CommitText("А"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ж"),
|
||||
action = KeyAction.CommitText("Ж")
|
||||
action = KeyAction.CommitText("Ж"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("?"),
|
||||
action = KeyAction.CommitText("?"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("€"),
|
||||
action = KeyAction.CommitText("€"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("="),
|
||||
action = KeyAction.CommitText("="),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("Н"),
|
||||
action = KeyAction.CommitText("Н"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("М"),
|
||||
action = KeyAction.CommitText("М")
|
||||
action = KeyAction.CommitText("М"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Л"),
|
||||
action = KeyAction.CommitText("Л")
|
||||
action = KeyAction.CommitText("Л"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("{"),
|
||||
action = KeyAction.CommitText("{"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("("),
|
||||
action = KeyAction.CommitText("("),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("["),
|
||||
action = KeyAction.CommitText("["),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("_"),
|
||||
action = KeyAction.CommitText("_"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("%"),
|
||||
action = KeyAction.CommitText("%"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("В"),
|
||||
action = KeyAction.CommitText("В"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Я"),
|
||||
action = KeyAction.CommitText("Я")
|
||||
action = KeyAction.CommitText("Я"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ы"),
|
||||
action = KeyAction.CommitText("Ы")
|
||||
action = KeyAction.CommitText("Ы"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ь"),
|
||||
action = KeyAction.CommitText("Ь")
|
||||
action = KeyAction.CommitText("Ь"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("П"),
|
||||
action = KeyAction.CommitText("П")
|
||||
action = KeyAction.CommitText("П"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("У"),
|
||||
action = KeyAction.CommitText("У")
|
||||
action = KeyAction.CommitText("У"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("З"),
|
||||
action = KeyAction.CommitText("З")
|
||||
action = KeyAction.CommitText("З"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Г"),
|
||||
action = KeyAction.CommitText("Г")
|
||||
action = KeyAction.CommitText("Г"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("К"),
|
||||
action = KeyAction.CommitText("К")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("К"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("Е"),
|
||||
action = KeyAction.CommitText("Е"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ф"),
|
||||
action = KeyAction.CommitText("Ф")
|
||||
action = KeyAction.CommitText("Ф"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.KeyboardCapslock),
|
||||
capsModeDisplay = KeyDisplay.IconDisplay(Icons.Outlined.Copyright),
|
||||
action = KeyAction.ToggleCapsLock,
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropDown),
|
||||
action = KeyAction.ToggleShiftMode(false),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("|"),
|
||||
action = KeyAction.CommitText("|"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("}"),
|
||||
action = KeyAction.CommitText("}"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(")"),
|
||||
action = KeyAction.CommitText(")"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("]"),
|
||||
action = KeyAction.CommitText("]"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("@"),
|
||||
action = KeyAction.CommitText("@"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("Т"),
|
||||
action = KeyAction.CommitText("Т"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ч"),
|
||||
action = KeyAction.CommitText("Ч")
|
||||
action = KeyAction.CommitText("Ч"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ш"),
|
||||
action = KeyAction.CommitText("Ш")
|
||||
action = KeyAction.CommitText("Ш"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ъ"),
|
||||
action = KeyAction.CommitText("Ъ")
|
||||
action = KeyAction.CommitText("Ъ"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("~"),
|
||||
action = KeyAction.CommitText("~"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(":"),
|
||||
action = KeyAction.CommitText(":"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("<"),
|
||||
action = KeyAction.CommitText("<"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("И"),
|
||||
action = KeyAction.CommitText("И"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Б"),
|
||||
action = KeyAction.CommitText("Б")
|
||||
action = KeyAction.CommitText("Б"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ц"),
|
||||
action = KeyAction.CommitText("Ц")
|
||||
action = KeyAction.CommitText("Ц"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("\""),
|
||||
action = KeyAction.CommitText("\""),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("*"),
|
||||
action = KeyAction.CommitText("*"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("О"),
|
||||
action = KeyAction.CommitText("О"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Д"),
|
||||
action = KeyAction.CommitText("Д")
|
||||
action = KeyAction.CommitText("Д"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ю"),
|
||||
action = KeyAction.CommitText("Ю")
|
||||
action = KeyAction.CommitText("Ю"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ё"),
|
||||
action = KeyAction.CommitText("Ё")
|
||||
action = KeyAction.CommitText("Ё"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("&"),
|
||||
action = KeyAction.CommitText("&"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("°"),
|
||||
action = KeyAction.CommitText("°"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(">"),
|
||||
action = KeyAction.CommitText(">"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(";"),
|
||||
action = KeyAction.CommitText(";"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("#"),
|
||||
action = KeyAction.CommitText("#"),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_RU_V2_SYMBOLS_KEYBOARD_MODES: Map<KeyboardMode, KeyboardC> = mapOf(
|
||||
KeyboardMode.MAIN to THUMBKEY_RU_V2_SYMBOLS_MAIN,
|
||||
KeyboardMode.SHIFTED to THUMBKEY_RU_V2_SYMBOLS_SHIFTED,
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD,
|
||||
)
|
||||
|
@ -17,479 +17,479 @@ import com.dessalines.thumbkey.utils.SwipeDirection
|
||||
import com.dessalines.thumbkey.utils.SwipeNWay
|
||||
|
||||
val THUMBKEY_UK_V1_MAIN = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("с"),
|
||||
action = KeyAction.CommitText("с"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("й"),
|
||||
action = KeyAction.CommitText("й")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("й"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("р"),
|
||||
action = KeyAction.CommitText("р"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_VERTICAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("х"),
|
||||
action = KeyAction.CommitText("х")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("х"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("а"),
|
||||
action = KeyAction.CommitText("а"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ж"),
|
||||
action = KeyAction.CommitText("ж")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ж"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("н"),
|
||||
action = KeyAction.CommitText("н"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("м"),
|
||||
action = KeyAction.CommitText("м")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("м"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("в"),
|
||||
action = KeyAction.CommitText("в"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("я"),
|
||||
action = KeyAction.CommitText("я")
|
||||
action = KeyAction.CommitText("я"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ї"),
|
||||
action = KeyAction.CommitText("ї")
|
||||
action = KeyAction.CommitText("ї"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ь"),
|
||||
action = KeyAction.CommitText("ь")
|
||||
action = KeyAction.CommitText("ь"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("п"),
|
||||
action = KeyAction.CommitText("п")
|
||||
action = KeyAction.CommitText("п"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("у"),
|
||||
action = KeyAction.CommitText("у")
|
||||
action = KeyAction.CommitText("у"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("з"),
|
||||
action = KeyAction.CommitText("з")
|
||||
action = KeyAction.CommitText("з"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("г"),
|
||||
action = KeyAction.CommitText("г")
|
||||
action = KeyAction.CommitText("г"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("к"),
|
||||
action = KeyAction.CommitText("к")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("к"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("і"),
|
||||
action = KeyAction.CommitText("і"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("е"),
|
||||
action = KeyAction.CommitText("е")
|
||||
action = KeyAction.CommitText("е"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("л"),
|
||||
action = KeyAction.CommitText("л")
|
||||
action = KeyAction.CommitText("л"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ф"),
|
||||
action = KeyAction.CommitText("ф")
|
||||
action = KeyAction.CommitText("ф"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropUp),
|
||||
action = KeyAction.ToggleShiftMode(true),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("т"),
|
||||
action = KeyAction.CommitText("т"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ч"),
|
||||
action = KeyAction.CommitText("ч")
|
||||
action = KeyAction.CommitText("ч"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ш"),
|
||||
action = KeyAction.CommitText("ш")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ш"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("и"),
|
||||
action = KeyAction.CommitText("и"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("щ"),
|
||||
action = KeyAction.CommitText("щ")
|
||||
action = KeyAction.CommitText("щ"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("б"),
|
||||
action = KeyAction.CommitText("б")
|
||||
action = KeyAction.CommitText("б"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ц"),
|
||||
action = KeyAction.CommitText("ц")
|
||||
action = KeyAction.CommitText("ц"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("о"),
|
||||
action = KeyAction.CommitText("о"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("д"),
|
||||
action = KeyAction.CommitText("д")
|
||||
action = KeyAction.CommitText("д"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ю"),
|
||||
action = KeyAction.CommitText("ю")
|
||||
action = KeyAction.CommitText("ю"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("є"),
|
||||
action = KeyAction.CommitText("є")
|
||||
action = KeyAction.CommitText("є"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("ґ"),
|
||||
action = KeyAction.CommitText("ґ")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("ґ"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_UK_V1_SHIFTED = KeyboardC(
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
listOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("С"),
|
||||
action = KeyAction.CommitText("С"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Й"),
|
||||
action = KeyAction.CommitText("Й")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Й"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("Р"),
|
||||
action = KeyAction.CommitText("Р"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_VERTICAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Х"),
|
||||
action = KeyAction.CommitText("Х")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Х"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("А"),
|
||||
action = KeyAction.CommitText("А"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.FOUR_WAY_DIAGONAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ж"),
|
||||
action = KeyAction.CommitText("Ж")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Ж"),
|
||||
),
|
||||
),
|
||||
),
|
||||
SETTINGS_KEY_ITEM
|
||||
SETTINGS_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("Н"),
|
||||
action = KeyAction.CommitText("Н"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipeType = SwipeNWay.TWO_WAY_HORIZONTAL,
|
||||
swipes = mapOf(
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("М"),
|
||||
action = KeyAction.CommitText("М")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("М"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("В"),
|
||||
action = KeyAction.CommitText("В"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Я"),
|
||||
action = KeyAction.CommitText("Я")
|
||||
action = KeyAction.CommitText("Я"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ї"),
|
||||
action = KeyAction.CommitText("Ї")
|
||||
action = KeyAction.CommitText("Ї"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ь"),
|
||||
action = KeyAction.CommitText("Ь")
|
||||
action = KeyAction.CommitText("Ь"),
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("П"),
|
||||
action = KeyAction.CommitText("П")
|
||||
action = KeyAction.CommitText("П"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("У"),
|
||||
action = KeyAction.CommitText("У")
|
||||
action = KeyAction.CommitText("У"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("З"),
|
||||
action = KeyAction.CommitText("З")
|
||||
action = KeyAction.CommitText("З"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Г"),
|
||||
action = KeyAction.CommitText("Г")
|
||||
action = KeyAction.CommitText("Г"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("К"),
|
||||
action = KeyAction.CommitText("К")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("К"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("І"),
|
||||
action = KeyAction.CommitText("І"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Е"),
|
||||
action = KeyAction.CommitText("Е")
|
||||
action = KeyAction.CommitText("Е"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Л"),
|
||||
action = KeyAction.CommitText("Л")
|
||||
action = KeyAction.CommitText("Л"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ф"),
|
||||
action = KeyAction.CommitText("Ф")
|
||||
action = KeyAction.CommitText("Ф"),
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.ArrowDropDown),
|
||||
action = KeyAction.ToggleShiftMode(false),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.IconDisplay(Icons.Outlined.KeyboardCapslock),
|
||||
capsModeDisplay = KeyDisplay.IconDisplay(Icons.Outlined.Copyright),
|
||||
action = KeyAction.ToggleCapsLock,
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
NUMERIC_KEY_ITEM
|
||||
NUMERIC_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("Т"),
|
||||
action = KeyAction.CommitText("Т"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ч"),
|
||||
action = KeyAction.CommitText("Ч")
|
||||
action = KeyAction.CommitText("Ч"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ш"),
|
||||
action = KeyAction.CommitText("Ш")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Ш"),
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("И"),
|
||||
action = KeyAction.CommitText("И"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Щ"),
|
||||
action = KeyAction.CommitText("Щ")
|
||||
action = KeyAction.CommitText("Щ"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Б"),
|
||||
action = KeyAction.CommitText("Б")
|
||||
action = KeyAction.CommitText("Б"),
|
||||
),
|
||||
SwipeDirection.TOP_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("'"),
|
||||
action = KeyAction.CommitText("'"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ц"),
|
||||
action = KeyAction.CommitText("Ц")
|
||||
action = KeyAction.CommitText("Ц"),
|
||||
),
|
||||
SwipeDirection.BOTTOM_RIGHT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("-"),
|
||||
action = KeyAction.CommitText("-"),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM to KeyC(
|
||||
display = KeyDisplay.TextDisplay("."),
|
||||
action = KeyAction.CommitText("."),
|
||||
color = ColorVariant.MUTED
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
SwipeDirection.BOTTOM_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay(","),
|
||||
action = KeyAction.CommitText(","),
|
||||
color = ColorVariant.MUTED
|
||||
)
|
||||
)
|
||||
color = ColorVariant.MUTED,
|
||||
),
|
||||
),
|
||||
),
|
||||
KeyItemC(
|
||||
center = KeyC(
|
||||
display = KeyDisplay.TextDisplay("О"),
|
||||
action = KeyAction.CommitText("О"),
|
||||
size = FontSizeVariant.LARGE,
|
||||
color = ColorVariant.PRIMARY
|
||||
color = ColorVariant.PRIMARY,
|
||||
),
|
||||
swipes = mapOf(
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Д"),
|
||||
action = KeyAction.CommitText("Д")
|
||||
action = KeyAction.CommitText("Д"),
|
||||
),
|
||||
SwipeDirection.TOP to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ю"),
|
||||
action = KeyAction.CommitText("Ю")
|
||||
action = KeyAction.CommitText("Ю"),
|
||||
),
|
||||
SwipeDirection.LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Є"),
|
||||
action = KeyAction.CommitText("Є")
|
||||
action = KeyAction.CommitText("Є"),
|
||||
),
|
||||
SwipeDirection.TOP_LEFT to KeyC(
|
||||
display = KeyDisplay.TextDisplay("Ґ"),
|
||||
action = KeyAction.CommitText("Ґ")
|
||||
)
|
||||
)
|
||||
action = KeyAction.CommitText("Ґ"),
|
||||
),
|
||||
),
|
||||
),
|
||||
BACKSPACE_KEY_ITEM
|
||||
BACKSPACE_KEY_ITEM,
|
||||
),
|
||||
arrayOf(
|
||||
listOf(
|
||||
SPACEBAR_KEY_ITEM,
|
||||
RETURN_KEY_ITEM
|
||||
)
|
||||
)
|
||||
RETURN_KEY_ITEM,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
val THUMBKEY_UK_V1_KEYBOARD_MODES: Map<KeyboardMode, KeyboardC> = mapOf(
|
||||
KeyboardMode.MAIN to THUMBKEY_UK_V1_MAIN,
|
||||
KeyboardMode.SHIFTED to THUMBKEY_UK_V1_SHIFTED,
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD
|
||||
KeyboardMode.NUMERIC to NUMERIC_KEYBOARD,
|
||||
)
|
||||
|
@ -72,7 +72,7 @@ fun KeyboardKey(
|
||||
onToggleCapsLock: () -> Unit,
|
||||
onAutoCapitalize: (enable: Boolean) -> Unit,
|
||||
onSwitchLanguage: () -> Unit,
|
||||
onSwitchPosition: () -> Unit
|
||||
onSwitchPosition: () -> Unit,
|
||||
) {
|
||||
// Necessary for swipe settings to get updated correctly
|
||||
val id = key.toString() + animationHelperSpeed + animationSpeed + autoCapitalize + vibrateOnTap + soundOnTap + keySize + minSwipeLength
|
||||
@ -157,7 +157,7 @@ fun KeyboardKey(
|
||||
onToggleCapsLock = onToggleCapsLock,
|
||||
onAutoCapitalize = onAutoCapitalize,
|
||||
onSwitchLanguage = onSwitchLanguage,
|
||||
onSwitchPosition = onSwitchPosition
|
||||
onSwitchPosition = onSwitchPosition,
|
||||
)
|
||||
doneKeyAction(scope, action, isDragged, releasedKey, animationHelperSpeed)
|
||||
}
|
||||
@ -186,7 +186,7 @@ fun KeyboardKey(
|
||||
onToggleCapsLock = onToggleCapsLock,
|
||||
onAutoCapitalize = onAutoCapitalize,
|
||||
onSwitchLanguage = onSwitchLanguage,
|
||||
onSwitchPosition = onSwitchPosition
|
||||
onSwitchPosition = onSwitchPosition,
|
||||
)
|
||||
lastAction.value = action
|
||||
|
||||
@ -195,20 +195,20 @@ fun KeyboardKey(
|
||||
offsetY = 0f
|
||||
|
||||
doneKeyAction(scope, action, isDragged, releasedKey, animationHelperSpeed)
|
||||
}
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
// a 3x3 grid
|
||||
// Use box so they can overlap
|
||||
Box(
|
||||
modifier = keyboardKeyModifier
|
||||
modifier = keyboardKeyModifier,
|
||||
) {
|
||||
Box(
|
||||
contentAlignment = Alignment.TopStart,
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.padding(horizontal = keyPadding)
|
||||
.padding(horizontal = keyPadding),
|
||||
) {
|
||||
key.swipes?.get(SwipeDirection.TOP_LEFT)?.let {
|
||||
KeyText(it, keySizeDp, hideLetters, capsLock)
|
||||
@ -218,7 +218,7 @@ fun KeyboardKey(
|
||||
contentAlignment = Alignment.TopCenter,
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.padding(horizontal = keyPadding)
|
||||
.padding(horizontal = keyPadding),
|
||||
) {
|
||||
key.swipes?.get(SwipeDirection.TOP)?.let {
|
||||
KeyText(it, keySizeDp, hideLetters, capsLock)
|
||||
@ -228,7 +228,7 @@ fun KeyboardKey(
|
||||
contentAlignment = Alignment.TopEnd,
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.padding(horizontal = keyPadding)
|
||||
.padding(horizontal = keyPadding),
|
||||
) {
|
||||
key.swipes?.get(SwipeDirection.TOP_RIGHT)?.let {
|
||||
KeyText(it, keySizeDp, hideLetters, capsLock)
|
||||
@ -238,7 +238,7 @@ fun KeyboardKey(
|
||||
contentAlignment = Alignment.CenterStart,
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.padding(horizontal = keyPadding)
|
||||
.padding(horizontal = keyPadding),
|
||||
) {
|
||||
key.swipes?.get(SwipeDirection.LEFT)?.let {
|
||||
KeyText(it, keySizeDp, hideLetters, capsLock)
|
||||
@ -248,7 +248,7 @@ fun KeyboardKey(
|
||||
contentAlignment = Alignment.Center,
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.padding(horizontal = keyPadding)
|
||||
.padding(horizontal = keyPadding),
|
||||
) {
|
||||
KeyText(key.center, keySizeDp, hideLetters, capsLock)
|
||||
}
|
||||
@ -257,7 +257,7 @@ fun KeyboardKey(
|
||||
contentAlignment = Alignment.CenterEnd,
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.padding(horizontal = keyPadding)
|
||||
.padding(horizontal = keyPadding),
|
||||
) {
|
||||
key.swipes?.get(SwipeDirection.RIGHT)?.let {
|
||||
KeyText(it, keySizeDp, hideLetters, capsLock)
|
||||
@ -267,7 +267,7 @@ fun KeyboardKey(
|
||||
contentAlignment = Alignment.BottomStart,
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.padding(horizontal = keyPadding)
|
||||
.padding(horizontal = keyPadding),
|
||||
) {
|
||||
key.swipes?.get(SwipeDirection.BOTTOM_LEFT)?.let {
|
||||
KeyText(it, keySizeDp, hideLetters, capsLock)
|
||||
@ -277,7 +277,7 @@ fun KeyboardKey(
|
||||
contentAlignment = Alignment.BottomCenter,
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.padding(horizontal = keyPadding)
|
||||
.padding(horizontal = keyPadding),
|
||||
) {
|
||||
key.swipes?.get(SwipeDirection.BOTTOM)?.let {
|
||||
KeyText(it, keySizeDp, hideLetters, capsLock)
|
||||
@ -287,7 +287,7 @@ fun KeyboardKey(
|
||||
contentAlignment = Alignment.BottomEnd,
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.padding(horizontal = keyPadding)
|
||||
.padding(horizontal = keyPadding),
|
||||
) {
|
||||
key.swipes?.get(SwipeDirection.BOTTOM_RIGHT)?.let {
|
||||
KeyText(it, keySizeDp, hideLetters, capsLock)
|
||||
@ -301,12 +301,12 @@ fun KeyboardKey(
|
||||
.background(color = Color(0, 0, 0, 0)),
|
||||
visible = releasedKey.value != null,
|
||||
enter = EnterTransition.None,
|
||||
exit = fadeOut(tween(animationSpeed))
|
||||
exit = fadeOut(tween(animationSpeed)),
|
||||
) {
|
||||
Box(
|
||||
contentAlignment = Alignment.Center,
|
||||
modifier = Modifier.fillMaxSize()
|
||||
.background(color = MaterialTheme.colorScheme.tertiaryContainer)
|
||||
.background(color = MaterialTheme.colorScheme.tertiaryContainer),
|
||||
) {}
|
||||
}
|
||||
|
||||
@ -317,22 +317,22 @@ fun KeyboardKey(
|
||||
.background(color = Color(0, 0, 0, 0)),
|
||||
visible = releasedKey.value != null,
|
||||
enter = slideInVertically(tween(animationSpeed)),
|
||||
exit = fadeOut(tween(animationSpeed))
|
||||
exit = fadeOut(tween(animationSpeed)),
|
||||
) {
|
||||
Box(
|
||||
contentAlignment = Alignment.Center,
|
||||
modifier = Modifier.fillMaxSize()
|
||||
modifier = Modifier.fillMaxSize(),
|
||||
) {
|
||||
val fontSize = fontSizeVariantToFontSize(
|
||||
fontSizeVariant = FontSizeVariant.LARGE,
|
||||
keySize = keySizeDp
|
||||
keySize = keySizeDp,
|
||||
)
|
||||
releasedKey.value?.let { text ->
|
||||
Text(
|
||||
text = text,
|
||||
fontWeight = FontWeight.Bold,
|
||||
fontSize = fontSize,
|
||||
color = MaterialTheme.colorScheme.tertiary
|
||||
color = MaterialTheme.colorScheme.tertiary,
|
||||
)
|
||||
}
|
||||
}
|
||||
@ -357,7 +357,7 @@ fun KeyText(key: KeyC, keySize: Dp, hideLetters: Boolean, capsLock: Boolean) {
|
||||
imageVector = display.icon,
|
||||
contentDescription = display.icon.name,
|
||||
tint = color,
|
||||
modifier = Modifier.size(fontSize.value.dp)
|
||||
modifier = Modifier.size(fontSize.value.dp),
|
||||
)
|
||||
}
|
||||
is KeyDisplay.TextDisplay -> {
|
||||
@ -367,7 +367,7 @@ fun KeyText(key: KeyC, keySize: Dp, hideLetters: Boolean, capsLock: Boolean) {
|
||||
text = display.text,
|
||||
fontWeight = FontWeight.Bold,
|
||||
fontSize = fontSize,
|
||||
color = color
|
||||
color = color,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,10 @@
|
||||
package com.dessalines.thumbkey.ui.components.keyboard
|
||||
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.layout.*
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.getValue
|
||||
@ -40,14 +43,14 @@ import com.dessalines.thumbkey.utils.toBool
|
||||
fun KeyboardScreen(
|
||||
settings: AppSettings?,
|
||||
onSwitchLanguage: () -> Unit,
|
||||
onSwitchPosition: () -> Unit
|
||||
onSwitchPosition: () -> Unit,
|
||||
) {
|
||||
val ctx = LocalContext.current as IMEService
|
||||
|
||||
var mode by remember {
|
||||
val startMode = getKeyboardMode(
|
||||
ime = ctx,
|
||||
autoCapitalize = settings?.autoCapitalize?.toBool() ?: false
|
||||
autoCapitalize = settings?.autoCapitalize?.toBool() ?: false,
|
||||
)
|
||||
|
||||
mutableStateOf(startMode)
|
||||
@ -63,8 +66,8 @@ fun KeyboardScreen(
|
||||
val keyboardGroup = keyboardLayoutToModes(
|
||||
KeyboardLayout.values().sortedBy { it.index }[
|
||||
settings?.keyboardLayout
|
||||
?: DEFAULT_KEYBOARD_LAYOUT
|
||||
]
|
||||
?: DEFAULT_KEYBOARD_LAYOUT,
|
||||
],
|
||||
)
|
||||
|
||||
val keyboard = keyboardGroup[mode] ?: THUMBKEY_EN_V4_MAIN
|
||||
@ -72,8 +75,8 @@ fun KeyboardScreen(
|
||||
val alignment = keyboardPositionToAlignment(
|
||||
KeyboardPosition.values()[
|
||||
settings?.position
|
||||
?: DEFAULT_POSITION
|
||||
]
|
||||
?: DEFAULT_POSITION,
|
||||
],
|
||||
)
|
||||
val pushupSizeDp = (settings?.pushupSize ?: DEFAULT_PUSHUP_SIZE).dp
|
||||
|
||||
@ -87,11 +90,11 @@ fun KeyboardScreen(
|
||||
Box(
|
||||
contentAlignment = alignment,
|
||||
modifier = Modifier
|
||||
.padding(bottom = pushupSizeDp)
|
||||
.padding(bottom = pushupSizeDp),
|
||||
) {
|
||||
Column(
|
||||
modifier = Modifier
|
||||
.background(MaterialTheme.colorScheme.onBackground)
|
||||
.background(MaterialTheme.colorScheme.onBackground),
|
||||
) {
|
||||
keyboard.arr.forEach { row ->
|
||||
Row {
|
||||
@ -142,7 +145,7 @@ fun KeyboardScreen(
|
||||
}
|
||||
},
|
||||
onSwitchLanguage = onSwitchLanguage,
|
||||
onSwitchPosition = onSwitchPosition
|
||||
onSwitchPosition = onSwitchPosition,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ import com.dessalines.thumbkey.utils.openLink
|
||||
fun SettingsActivity(
|
||||
navController: NavController,
|
||||
thumbkeyEnabled: Boolean,
|
||||
thumbkeySelected: Boolean
|
||||
thumbkeySelected: Boolean,
|
||||
) {
|
||||
Log.d(TAG, "Got to settings activity")
|
||||
|
||||
@ -53,10 +53,10 @@ fun SettingsActivity(
|
||||
icon = {
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.InstallMobile,
|
||||
contentDescription = setupStr
|
||||
contentDescription = setupStr,
|
||||
)
|
||||
},
|
||||
onClick = { navController.navigate("setup") }
|
||||
onClick = { navController.navigate("setup") },
|
||||
)
|
||||
}
|
||||
val lookAndFeelStr = stringResource(R.string.look_and_feel)
|
||||
@ -65,10 +65,10 @@ fun SettingsActivity(
|
||||
icon = {
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.Palette,
|
||||
contentDescription = lookAndFeelStr
|
||||
contentDescription = lookAndFeelStr,
|
||||
)
|
||||
},
|
||||
onClick = { navController.navigate("lookAndFeel") }
|
||||
onClick = { navController.navigate("lookAndFeel") },
|
||||
)
|
||||
val userGuideStr = stringResource(R.string.user_guide)
|
||||
SettingsMenuLink(
|
||||
@ -76,12 +76,12 @@ fun SettingsActivity(
|
||||
icon = {
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.HelpCenter,
|
||||
contentDescription = userGuideStr
|
||||
contentDescription = userGuideStr,
|
||||
)
|
||||
},
|
||||
onClick = {
|
||||
openLink(userGuideLink, ctx)
|
||||
}
|
||||
},
|
||||
)
|
||||
val aboutStr = stringResource(R.string.about)
|
||||
SettingsMenuLink(
|
||||
@ -89,12 +89,12 @@ fun SettingsActivity(
|
||||
icon = {
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.Info,
|
||||
contentDescription = aboutStr
|
||||
contentDescription = aboutStr,
|
||||
)
|
||||
},
|
||||
onClick = { navController.navigate("about") }
|
||||
onClick = { navController.navigate("about") },
|
||||
)
|
||||
}
|
||||
}
|
||||
},
|
||||
)
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ const val mastodonLink = "https://mastodon.social/@dessalines"
|
||||
@OptIn(ExperimentalMaterial3Api::class)
|
||||
@Composable
|
||||
fun AboutActivity(
|
||||
navController: NavController
|
||||
navController: NavController,
|
||||
) {
|
||||
Log.d(TAG, "Got to About activity")
|
||||
|
||||
@ -70,12 +70,12 @@ fun AboutActivity(
|
||||
icon = {
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.NewReleases,
|
||||
contentDescription = stringResource(R.string.releases)
|
||||
contentDescription = stringResource(R.string.releases),
|
||||
)
|
||||
},
|
||||
onClick = {
|
||||
openLink("$githubUrl/blob/main/RELEASES.md", ctx)
|
||||
}
|
||||
},
|
||||
)
|
||||
SettingsDivider()
|
||||
SettingsHeader(text = stringResource(R.string.support))
|
||||
@ -84,36 +84,36 @@ fun AboutActivity(
|
||||
icon = {
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.BugReport,
|
||||
contentDescription = stringResource(R.string.issue_tracker)
|
||||
contentDescription = stringResource(R.string.issue_tracker),
|
||||
)
|
||||
},
|
||||
onClick = {
|
||||
openLink("$githubUrl/issues", ctx)
|
||||
}
|
||||
},
|
||||
)
|
||||
SettingsMenuLink(
|
||||
title = { Text(stringResource(R.string.developer_matrix_chatroom)) },
|
||||
icon = {
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.Chat,
|
||||
contentDescription = stringResource(R.string.developer_matrix_chatroom)
|
||||
contentDescription = stringResource(R.string.developer_matrix_chatroom),
|
||||
)
|
||||
},
|
||||
onClick = {
|
||||
openLink(matrixChat, ctx)
|
||||
}
|
||||
},
|
||||
)
|
||||
SettingsMenuLink(
|
||||
title = { Text(stringResource(R.string.donate_to_thumbkey)) },
|
||||
icon = {
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.AttachMoney,
|
||||
contentDescription = stringResource(R.string.donate_to_thumbkey)
|
||||
contentDescription = stringResource(R.string.donate_to_thumbkey),
|
||||
)
|
||||
},
|
||||
onClick = {
|
||||
openLink(donateLink, ctx)
|
||||
}
|
||||
},
|
||||
)
|
||||
SettingsDivider()
|
||||
SettingsHeader(text = stringResource(R.string.social))
|
||||
@ -123,24 +123,24 @@ fun AboutActivity(
|
||||
Icon(
|
||||
painter = painterResource(id = R.drawable.thumb_key_icon),
|
||||
modifier = Modifier.size(32.dp),
|
||||
contentDescription = stringResource(R.string.join_c_thumbkey)
|
||||
contentDescription = stringResource(R.string.join_c_thumbkey),
|
||||
)
|
||||
},
|
||||
onClick = {
|
||||
openLink(lemmyLink, ctx)
|
||||
}
|
||||
},
|
||||
)
|
||||
SettingsMenuLink(
|
||||
title = { Text(stringResource(R.string.follow_me_mastodon)) },
|
||||
icon = {
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.TravelExplore,
|
||||
contentDescription = stringResource(R.string.follow_me_mastodon)
|
||||
contentDescription = stringResource(R.string.follow_me_mastodon),
|
||||
)
|
||||
},
|
||||
onClick = {
|
||||
openLink(mastodonLink, ctx)
|
||||
}
|
||||
},
|
||||
)
|
||||
SettingsDivider()
|
||||
SettingsHeader(text = stringResource(R.string.open_source))
|
||||
@ -153,15 +153,15 @@ fun AboutActivity(
|
||||
icon = {
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.Code,
|
||||
contentDescription = stringResource(R.string.source_code)
|
||||
contentDescription = stringResource(R.string.source_code),
|
||||
)
|
||||
},
|
||||
onClick = {
|
||||
openLink(githubUrl, ctx)
|
||||
}
|
||||
},
|
||||
)
|
||||
}
|
||||
}
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
@ -173,12 +173,12 @@ fun SettingsDivider() {
|
||||
@Composable
|
||||
fun SettingsHeader(
|
||||
text: String,
|
||||
color: Color = MaterialTheme.colorScheme.primary
|
||||
color: Color = MaterialTheme.colorScheme.primary,
|
||||
) {
|
||||
Text(
|
||||
text,
|
||||
modifier = Modifier.padding(start = 64.dp),
|
||||
color = color
|
||||
color = color,
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,22 @@ import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.rememberScrollState
|
||||
import androidx.compose.foundation.verticalScroll
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.outlined.*
|
||||
import androidx.compose.material.icons.outlined.Abc
|
||||
import androidx.compose.material.icons.outlined.Animation
|
||||
import androidx.compose.material.icons.outlined.BorderAll
|
||||
import androidx.compose.material.icons.outlined.Colorize
|
||||
import androidx.compose.material.icons.outlined.FormatSize
|
||||
import androidx.compose.material.icons.outlined.HideImage
|
||||
import androidx.compose.material.icons.outlined.KeyboardAlt
|
||||
import androidx.compose.material.icons.outlined.LinearScale
|
||||
import androidx.compose.material.icons.outlined.MusicNote
|
||||
import androidx.compose.material.icons.outlined.Palette
|
||||
import androidx.compose.material.icons.outlined.ResetTv
|
||||
import androidx.compose.material.icons.outlined.SpaceBar
|
||||
import androidx.compose.material.icons.outlined.Swipe
|
||||
import androidx.compose.material.icons.outlined.VerticalAlignTop
|
||||
import androidx.compose.material.icons.outlined.Vibration
|
||||
import androidx.compose.material.icons.outlined.Visibility
|
||||
import androidx.compose.material3.ExperimentalMaterial3Api
|
||||
import androidx.compose.material3.Icon
|
||||
import androidx.compose.material3.OutlinedTextField
|
||||
@ -70,53 +85,53 @@ import com.dessalines.thumbkey.utils.toInt
|
||||
@Composable
|
||||
fun LookAndFeelActivity(
|
||||
navController: NavController,
|
||||
appSettingsViewModel: AppSettingsViewModel
|
||||
appSettingsViewModel: AppSettingsViewModel,
|
||||
) {
|
||||
Log.d(TAG, "Got to lookAndFeel activity")
|
||||
|
||||
val settings = appSettingsViewModel.appSettings.observeAsState().value
|
||||
|
||||
val keySizeState = rememberFloatSettingState(
|
||||
(settings?.keySize ?: DEFAULT_KEY_SIZE).toFloat()
|
||||
(settings?.keySize ?: DEFAULT_KEY_SIZE).toFloat(),
|
||||
)
|
||||
val pushupSizeState = rememberFloatSettingState(
|
||||
(settings?.pushupSize ?: DEFAULT_PUSHUP_SIZE).toFloat()
|
||||
(settings?.pushupSize ?: DEFAULT_PUSHUP_SIZE).toFloat(),
|
||||
)
|
||||
val animationSpeedState = rememberFloatSettingState(
|
||||
(settings?.animationSpeed ?: DEFAULT_ANIMATION_SPEED).toFloat()
|
||||
(settings?.animationSpeed ?: DEFAULT_ANIMATION_SPEED).toFloat(),
|
||||
)
|
||||
val animationHelperSpeedState = rememberFloatSettingState(
|
||||
(settings?.animationHelperSpeed ?: DEFAULT_ANIMATION_HELPER_SPEED).toFloat()
|
||||
(settings?.animationHelperSpeed ?: DEFAULT_ANIMATION_HELPER_SPEED).toFloat(),
|
||||
)
|
||||
val minSwipeLengthState = rememberFloatSettingState(
|
||||
(settings?.minSwipeLength ?: DEFAULT_MIN_SWIPE_LENGTH).toFloat()
|
||||
(settings?.minSwipeLength ?: DEFAULT_MIN_SWIPE_LENGTH).toFloat(),
|
||||
)
|
||||
val positionState = rememberIntSettingState(
|
||||
settings?.position ?: DEFAULT_POSITION
|
||||
settings?.position ?: DEFAULT_POSITION,
|
||||
)
|
||||
val autoCapitalizeState = rememberBooleanSettingState(
|
||||
((settings?.autoCapitalize ?: DEFAULT_AUTO_CAPITALIZE).toBool())
|
||||
((settings?.autoCapitalize ?: DEFAULT_AUTO_CAPITALIZE).toBool()),
|
||||
)
|
||||
val vibrateOnTapState = rememberBooleanSettingState(
|
||||
((settings?.vibrateOnTap ?: DEFAULT_VIBRATE_ON_TAP).toBool())
|
||||
((settings?.vibrateOnTap ?: DEFAULT_VIBRATE_ON_TAP).toBool()),
|
||||
)
|
||||
val soundOnTapState = rememberBooleanSettingState(
|
||||
((settings?.soundOnTap ?: DEFAULT_SOUND_ON_TAP).toBool())
|
||||
((settings?.soundOnTap ?: DEFAULT_SOUND_ON_TAP).toBool()),
|
||||
)
|
||||
val hideLettersState = rememberBooleanSettingState(
|
||||
((settings?.hideLetters ?: DEFAULT_HIDE_LETTERS).toBool())
|
||||
((settings?.hideLetters ?: DEFAULT_HIDE_LETTERS).toBool()),
|
||||
)
|
||||
|
||||
val keyboardLayoutsState = rememberIntSetSettingState(
|
||||
keyboardLayoutsSetFromTitleIndex(settings?.keyboardLayouts)
|
||||
keyboardLayoutsSetFromTitleIndex(settings?.keyboardLayouts),
|
||||
)
|
||||
val themeState = rememberIntSettingState(settings?.theme ?: DEFAULT_THEME)
|
||||
val themeColorState = rememberIntSettingState(settings?.themeColor ?: DEFAULT_THEME_COLOR)
|
||||
val keyBordersState = rememberBooleanSettingState(
|
||||
((settings?.keyBorders ?: DEFAULT_KEY_BORDERS).toBool())
|
||||
((settings?.keyBorders ?: DEFAULT_KEY_BORDERS).toBool()),
|
||||
)
|
||||
val spacebarMultiTapsState = rememberBooleanSettingState(
|
||||
((settings?.spacebarMultiTaps ?: DEFAULT_SPACEBAR_MULTITAPS).toBool())
|
||||
((settings?.spacebarMultiTaps ?: DEFAULT_SPACEBAR_MULTITAPS).toBool()),
|
||||
)
|
||||
|
||||
val snackbarHostState = remember { SnackbarHostState() }
|
||||
@ -135,7 +150,7 @@ fun LookAndFeelActivity(
|
||||
modifier = Modifier
|
||||
.padding(padding)
|
||||
.verticalScroll(scrollState)
|
||||
.imePadding()
|
||||
.imePadding(),
|
||||
) {
|
||||
SettingsListMultiSelect(
|
||||
state = keyboardLayoutsState,
|
||||
@ -143,7 +158,7 @@ fun LookAndFeelActivity(
|
||||
icon = {
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.KeyboardAlt,
|
||||
contentDescription = stringResource(R.string.layouts)
|
||||
contentDescription = stringResource(R.string.layouts),
|
||||
)
|
||||
},
|
||||
title = {
|
||||
@ -167,9 +182,9 @@ fun LookAndFeelActivity(
|
||||
hideLettersState,
|
||||
keyboardLayoutsState,
|
||||
themeState,
|
||||
themeColorState
|
||||
themeColorState,
|
||||
)
|
||||
}
|
||||
},
|
||||
)
|
||||
SettingsList(
|
||||
state = themeState,
|
||||
@ -177,7 +192,7 @@ fun LookAndFeelActivity(
|
||||
icon = {
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.Palette,
|
||||
contentDescription = stringResource(R.string.theme)
|
||||
contentDescription = stringResource(R.string.theme),
|
||||
)
|
||||
},
|
||||
title = {
|
||||
@ -201,9 +216,9 @@ fun LookAndFeelActivity(
|
||||
hideLettersState,
|
||||
keyboardLayoutsState,
|
||||
themeState,
|
||||
themeColorState
|
||||
themeColorState,
|
||||
)
|
||||
}
|
||||
},
|
||||
)
|
||||
SettingsList(
|
||||
state = themeColorState,
|
||||
@ -211,7 +226,7 @@ fun LookAndFeelActivity(
|
||||
icon = {
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.Colorize,
|
||||
contentDescription = stringResource(R.string.theme_color)
|
||||
contentDescription = stringResource(R.string.theme_color),
|
||||
)
|
||||
},
|
||||
title = {
|
||||
@ -235,9 +250,9 @@ fun LookAndFeelActivity(
|
||||
hideLettersState,
|
||||
keyboardLayoutsState,
|
||||
themeState,
|
||||
themeColorState
|
||||
themeColorState,
|
||||
)
|
||||
}
|
||||
},
|
||||
)
|
||||
SettingsList(
|
||||
state = positionState,
|
||||
@ -245,7 +260,7 @@ fun LookAndFeelActivity(
|
||||
icon = {
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.LinearScale,
|
||||
contentDescription = stringResource(R.string.position)
|
||||
contentDescription = stringResource(R.string.position),
|
||||
)
|
||||
},
|
||||
title = {
|
||||
@ -269,16 +284,16 @@ fun LookAndFeelActivity(
|
||||
hideLettersState,
|
||||
keyboardLayoutsState,
|
||||
themeState,
|
||||
themeColorState
|
||||
themeColorState,
|
||||
)
|
||||
}
|
||||
},
|
||||
)
|
||||
SettingsCheckbox(
|
||||
state = vibrateOnTapState,
|
||||
icon = {
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.Vibration,
|
||||
contentDescription = stringResource(R.string.vibrate_on_tap)
|
||||
contentDescription = stringResource(R.string.vibrate_on_tap),
|
||||
)
|
||||
},
|
||||
title = {
|
||||
@ -301,16 +316,16 @@ fun LookAndFeelActivity(
|
||||
hideLettersState,
|
||||
keyboardLayoutsState,
|
||||
themeState,
|
||||
themeColorState
|
||||
themeColorState,
|
||||
)
|
||||
}
|
||||
},
|
||||
)
|
||||
SettingsCheckbox(
|
||||
state = soundOnTapState,
|
||||
icon = {
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.MusicNote,
|
||||
contentDescription = stringResource(R.string.play_sound_on_tap)
|
||||
contentDescription = stringResource(R.string.play_sound_on_tap),
|
||||
)
|
||||
},
|
||||
title = {
|
||||
@ -333,16 +348,16 @@ fun LookAndFeelActivity(
|
||||
hideLettersState,
|
||||
keyboardLayoutsState,
|
||||
themeState,
|
||||
themeColorState
|
||||
themeColorState,
|
||||
)
|
||||
}
|
||||
},
|
||||
)
|
||||
SettingsCheckbox(
|
||||
state = hideLettersState,
|
||||
icon = {
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.HideImage,
|
||||
contentDescription = stringResource(R.string.hide_letters)
|
||||
contentDescription = stringResource(R.string.hide_letters),
|
||||
)
|
||||
},
|
||||
title = {
|
||||
@ -365,16 +380,16 @@ fun LookAndFeelActivity(
|
||||
hideLettersState,
|
||||
keyboardLayoutsState,
|
||||
themeState,
|
||||
themeColorState
|
||||
themeColorState,
|
||||
)
|
||||
}
|
||||
},
|
||||
)
|
||||
SettingsCheckbox(
|
||||
state = autoCapitalizeState,
|
||||
icon = {
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.Abc,
|
||||
contentDescription = stringResource(R.string.auto_capitalize)
|
||||
contentDescription = stringResource(R.string.auto_capitalize),
|
||||
)
|
||||
},
|
||||
title = {
|
||||
@ -397,16 +412,16 @@ fun LookAndFeelActivity(
|
||||
hideLettersState,
|
||||
keyboardLayoutsState,
|
||||
themeState,
|
||||
themeColorState
|
||||
themeColorState,
|
||||
)
|
||||
}
|
||||
},
|
||||
)
|
||||
SettingsCheckbox(
|
||||
state = spacebarMultiTapsState,
|
||||
icon = {
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.SpaceBar,
|
||||
contentDescription = stringResource(R.string.spacebar_multitaps)
|
||||
contentDescription = stringResource(R.string.spacebar_multitaps),
|
||||
)
|
||||
},
|
||||
title = {
|
||||
@ -429,16 +444,16 @@ fun LookAndFeelActivity(
|
||||
hideLettersState,
|
||||
keyboardLayoutsState,
|
||||
themeState,
|
||||
themeColorState
|
||||
themeColorState,
|
||||
)
|
||||
}
|
||||
},
|
||||
)
|
||||
SettingsCheckbox(
|
||||
state = keyBordersState,
|
||||
icon = {
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.BorderAll,
|
||||
contentDescription = stringResource(R.string.key_borders)
|
||||
contentDescription = stringResource(R.string.key_borders),
|
||||
)
|
||||
},
|
||||
title = {
|
||||
@ -461,9 +476,9 @@ fun LookAndFeelActivity(
|
||||
hideLettersState,
|
||||
keyboardLayoutsState,
|
||||
themeState,
|
||||
themeColorState
|
||||
themeColorState,
|
||||
)
|
||||
}
|
||||
},
|
||||
)
|
||||
val keySizeStr = stringResource(R.string.key_size, keySizeState.value.toInt().toString())
|
||||
SettingsSlider(
|
||||
@ -472,7 +487,7 @@ fun LookAndFeelActivity(
|
||||
icon = {
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.FormatSize,
|
||||
contentDescription = keySizeStr
|
||||
contentDescription = keySizeStr,
|
||||
)
|
||||
},
|
||||
title = {
|
||||
@ -495,9 +510,9 @@ fun LookAndFeelActivity(
|
||||
hideLettersState,
|
||||
keyboardLayoutsState,
|
||||
themeState,
|
||||
themeColorState
|
||||
themeColorState,
|
||||
)
|
||||
}
|
||||
},
|
||||
)
|
||||
val bottomOffsetStr = stringResource(R.string.bottom_offset, pushupSizeState.value.toInt().toString())
|
||||
SettingsSlider(
|
||||
@ -506,7 +521,7 @@ fun LookAndFeelActivity(
|
||||
icon = {
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.VerticalAlignTop,
|
||||
contentDescription = bottomOffsetStr
|
||||
contentDescription = bottomOffsetStr,
|
||||
)
|
||||
},
|
||||
title = {
|
||||
@ -529,9 +544,9 @@ fun LookAndFeelActivity(
|
||||
hideLettersState,
|
||||
keyboardLayoutsState,
|
||||
themeState,
|
||||
themeColorState
|
||||
themeColorState,
|
||||
)
|
||||
}
|
||||
},
|
||||
)
|
||||
val minSwipeLengthStr = stringResource(R.string.min_swipe_length, minSwipeLengthState.value.toInt().toString())
|
||||
SettingsSlider(
|
||||
@ -540,7 +555,7 @@ fun LookAndFeelActivity(
|
||||
icon = {
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.Swipe,
|
||||
contentDescription = minSwipeLengthStr
|
||||
contentDescription = minSwipeLengthStr,
|
||||
)
|
||||
},
|
||||
title = {
|
||||
@ -563,9 +578,9 @@ fun LookAndFeelActivity(
|
||||
hideLettersState,
|
||||
keyboardLayoutsState,
|
||||
themeState,
|
||||
themeColorState
|
||||
themeColorState,
|
||||
)
|
||||
}
|
||||
},
|
||||
)
|
||||
val animationSpeedStr = stringResource(R.string.animation_speed, animationSpeedState.value.toInt().toString())
|
||||
SettingsSlider(
|
||||
@ -574,7 +589,7 @@ fun LookAndFeelActivity(
|
||||
icon = {
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.Animation,
|
||||
contentDescription = animationSpeedStr
|
||||
contentDescription = animationSpeedStr,
|
||||
)
|
||||
},
|
||||
title = {
|
||||
@ -597,15 +612,15 @@ fun LookAndFeelActivity(
|
||||
hideLettersState,
|
||||
keyboardLayoutsState,
|
||||
themeState,
|
||||
themeColorState
|
||||
themeColorState,
|
||||
)
|
||||
}
|
||||
},
|
||||
)
|
||||
val animationHelperSpeedStr = stringResource(
|
||||
R.string.animation_helper_speed,
|
||||
animationHelperSpeedState
|
||||
.value
|
||||
.toInt().toString()
|
||||
.toInt().toString(),
|
||||
)
|
||||
SettingsSlider(
|
||||
valueRange = 0f..500f,
|
||||
@ -613,7 +628,7 @@ fun LookAndFeelActivity(
|
||||
icon = {
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.Visibility,
|
||||
contentDescription = animationHelperSpeedStr
|
||||
contentDescription = animationHelperSpeedStr,
|
||||
)
|
||||
},
|
||||
title = {
|
||||
@ -636,9 +651,9 @@ fun LookAndFeelActivity(
|
||||
hideLettersState,
|
||||
keyboardLayoutsState,
|
||||
themeState,
|
||||
themeColorState
|
||||
themeColorState,
|
||||
)
|
||||
}
|
||||
},
|
||||
)
|
||||
SettingsMenuLink(
|
||||
title = {
|
||||
@ -647,7 +662,7 @@ fun LookAndFeelActivity(
|
||||
icon = {
|
||||
Icon(
|
||||
imageVector = Icons.Outlined.ResetTv,
|
||||
contentDescription = stringResource(R.string.reset_to_defaults)
|
||||
contentDescription = stringResource(R.string.reset_to_defaults),
|
||||
)
|
||||
},
|
||||
onClick = {
|
||||
@ -667,9 +682,9 @@ fun LookAndFeelActivity(
|
||||
hideLettersState,
|
||||
keyboardLayoutsState,
|
||||
themeState,
|
||||
themeColorState
|
||||
themeColorState,
|
||||
)
|
||||
}
|
||||
},
|
||||
)
|
||||
OutlinedTextField(
|
||||
modifier = Modifier
|
||||
@ -677,10 +692,10 @@ fun LookAndFeelActivity(
|
||||
.fillMaxWidth(),
|
||||
value = text,
|
||||
onValueChange = { text = it },
|
||||
label = { Text(stringResource(R.string.test_out_thumbkey)) }
|
||||
label = { Text(stringResource(R.string.test_out_thumbkey)) },
|
||||
)
|
||||
}
|
||||
}
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
@ -700,7 +715,7 @@ private fun updateAppSettings(
|
||||
hideLettersState: SettingValueState<Boolean>,
|
||||
keyboardLayoutsState: SettingValueState<Set<Int>>,
|
||||
themeState: SettingValueState<Int>,
|
||||
themeColorState: SettingValueState<Int>
|
||||
themeColorState: SettingValueState<Int>,
|
||||
) {
|
||||
appSettingsViewModel.update(
|
||||
AppSettings(
|
||||
@ -723,8 +738,8 @@ private fun updateAppSettings(
|
||||
.joinToString(),
|
||||
theme = themeState.value,
|
||||
themeColor = themeColorState.value,
|
||||
viewedChangelog = appSettingsViewModel.appSettings.value?.viewedChangelog ?: 0
|
||||
)
|
||||
viewedChangelog = appSettingsViewModel.appSettings.value?.viewedChangelog ?: 0,
|
||||
),
|
||||
)
|
||||
}
|
||||
|
||||
@ -744,7 +759,7 @@ private fun resetAppSettingsToDefault(
|
||||
hideLettersState: SettingValueState<Boolean>,
|
||||
keyboardLayoutsState: SettingValueState<Set<Int>>,
|
||||
themeState: SettingValueState<Int>,
|
||||
themeColorState: SettingValueState<Int>
|
||||
themeColorState: SettingValueState<Int>,
|
||||
) {
|
||||
keySizeState.value = DEFAULT_KEY_SIZE.toFloat()
|
||||
pushupSizeState.value = DEFAULT_PUSHUP_SIZE.toFloat()
|
||||
@ -778,6 +793,6 @@ private fun resetAppSettingsToDefault(
|
||||
hideLettersState,
|
||||
keyboardLayoutsState,
|
||||
themeState,
|
||||
themeColorState
|
||||
themeColorState,
|
||||
)
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ import splitties.systemservices.inputMethodManager
|
||||
fun SetupActivity(
|
||||
navController: NavController,
|
||||
thumbkeyEnabled: Boolean,
|
||||
thumbkeySelected: Boolean
|
||||
thumbkeySelected: Boolean,
|
||||
) {
|
||||
Log.d(TAG, "Got to setup activity")
|
||||
|
||||
@ -45,7 +45,7 @@ fun SetupActivity(
|
||||
SimpleTopAppBar(
|
||||
text = stringResource(R.string.setup_thumbkey),
|
||||
navController = navController,
|
||||
showBack = false
|
||||
showBack = false,
|
||||
)
|
||||
},
|
||||
content = { padding ->
|
||||
@ -53,7 +53,7 @@ fun SetupActivity(
|
||||
verticalArrangement = Arrangement.spacedBy(spacing),
|
||||
modifier = Modifier
|
||||
.padding(padding)
|
||||
.padding(horizontal = spacing)
|
||||
.padding(horizontal = spacing),
|
||||
) {
|
||||
if (!thumbkeyEnabled) {
|
||||
Button(modifier = Modifier.fillMaxWidth(), onClick = {
|
||||
@ -75,6 +75,6 @@ fun SetupActivity(
|
||||
Text(stringResource(R.string.finish_setup))
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
)
|
||||
}
|
||||
|
@ -99,7 +99,7 @@ fun pink(): Pair<ColorScheme, ColorScheme> {
|
||||
inversePrimary = md_theme_light_inversePrimary,
|
||||
surfaceTint = md_theme_light_surfaceTint,
|
||||
outlineVariant = md_theme_light_outlineVariant,
|
||||
scrim = md_theme_light_scrim
|
||||
scrim = md_theme_light_scrim,
|
||||
)
|
||||
|
||||
val dark = darkColorScheme(
|
||||
@ -131,7 +131,7 @@ fun pink(): Pair<ColorScheme, ColorScheme> {
|
||||
inversePrimary = md_theme_dark_inversePrimary,
|
||||
surfaceTint = md_theme_dark_surfaceTint,
|
||||
outlineVariant = md_theme_dark_outlineVariant,
|
||||
scrim = md_theme_dark_scrim
|
||||
scrim = md_theme_dark_scrim,
|
||||
)
|
||||
return Pair(light, dark)
|
||||
}
|
||||
@ -230,7 +230,7 @@ fun green(): Pair<ColorScheme, ColorScheme> {
|
||||
inversePrimary = md_theme_light_inversePrimary,
|
||||
surfaceTint = md_theme_light_surfaceTint,
|
||||
outlineVariant = md_theme_light_outlineVariant,
|
||||
scrim = md_theme_light_scrim
|
||||
scrim = md_theme_light_scrim,
|
||||
)
|
||||
|
||||
val dark = darkColorScheme(
|
||||
@ -262,7 +262,7 @@ fun green(): Pair<ColorScheme, ColorScheme> {
|
||||
inversePrimary = md_theme_dark_inversePrimary,
|
||||
surfaceTint = md_theme_dark_surfaceTint,
|
||||
outlineVariant = md_theme_dark_outlineVariant,
|
||||
scrim = md_theme_dark_scrim
|
||||
scrim = md_theme_dark_scrim,
|
||||
)
|
||||
return Pair(light, dark)
|
||||
}
|
||||
|
@ -7,5 +7,5 @@ import androidx.compose.ui.unit.dp
|
||||
val Shapes = Shapes(
|
||||
small = RoundedCornerShape(4.dp),
|
||||
medium = RoundedCornerShape(4.dp),
|
||||
large = RoundedCornerShape(0.dp)
|
||||
large = RoundedCornerShape(0.dp),
|
||||
)
|
||||
|
@ -14,7 +14,7 @@ import com.dessalines.thumbkey.utils.ThemeMode
|
||||
@Composable
|
||||
fun ThumbkeyTheme(
|
||||
settings: AppSettings?,
|
||||
content: @Composable () -> Unit
|
||||
content: @Composable () -> Unit,
|
||||
) {
|
||||
val themeMode = ThemeMode.values()[settings?.theme ?: 0]
|
||||
val themeColor = ThemeColor.values()[settings?.themeColor ?: 0]
|
||||
@ -51,6 +51,6 @@ fun ThumbkeyTheme(
|
||||
colorScheme = colors,
|
||||
typography = Typography,
|
||||
shapes = Shapes,
|
||||
content = content
|
||||
content = content,
|
||||
)
|
||||
}
|
||||
|
@ -8,16 +8,16 @@ import com.dessalines.thumbkey.R
|
||||
|
||||
// Almost a 4x4 grid, but the bottom is mostly spacebar
|
||||
data class KeyboardC(
|
||||
val arr: Array<Array<KeyItemC>>
|
||||
val arr: List<List<KeyItemC>>,
|
||||
)
|
||||
|
||||
data class KeyItemC(
|
||||
val center: KeyC,
|
||||
val swipes: Map<SwipeDirection, KeyC>? = null,
|
||||
val nextTapActions: Array<KeyAction>? = null,
|
||||
val nextTapActions: List<KeyAction>? = null,
|
||||
val widthMultiplier: Int = 1,
|
||||
val backgroundColor: ColorVariant = ColorVariant.SURFACE,
|
||||
val swipeType: SwipeNWay = SwipeNWay.EIGHT_WAY
|
||||
val swipeType: SwipeNWay = SwipeNWay.EIGHT_WAY,
|
||||
)
|
||||
|
||||
data class KeyC(
|
||||
@ -25,7 +25,7 @@ data class KeyC(
|
||||
val capsModeDisplay: KeyDisplay? = null,
|
||||
val action: KeyAction,
|
||||
val color: ColorVariant = ColorVariant.SECONDARY,
|
||||
val size: FontSizeVariant = FontSizeVariant.SMALL
|
||||
val size: FontSizeVariant = FontSizeVariant.SMALL,
|
||||
)
|
||||
|
||||
sealed class KeyDisplay {
|
||||
@ -68,7 +68,8 @@ enum class FontSizeVariant {
|
||||
enum class ThemeMode(private val stringId: Int) {
|
||||
System(R.string.system),
|
||||
Light(R.string.light),
|
||||
Dark(R.string.dark);
|
||||
Dark(R.string.dark),
|
||||
;
|
||||
|
||||
@Composable
|
||||
fun title(): String {
|
||||
@ -79,7 +80,8 @@ enum class ThemeMode(private val stringId: Int) {
|
||||
enum class ThemeColor(private val stringId: Int) {
|
||||
Dynamic(R.string.dynamic),
|
||||
Green(R.string.green),
|
||||
Pink(R.string.pink);
|
||||
Pink(R.string.pink),
|
||||
;
|
||||
|
||||
@Composable
|
||||
fun title(): String {
|
||||
@ -111,13 +113,14 @@ enum class KeyboardLayout(val title: String, val index: Int) {
|
||||
ThumbKeyUKv1("Thumb-Key українська v1", 14),
|
||||
MessageEaseEN("MessageEase English", 15),
|
||||
MessageEaseENSymbols("MessageEase English with Symbols", 16),
|
||||
MessageEaseHE("MessageEase עברית", 17)
|
||||
MessageEaseHE("MessageEase עברית", 17),
|
||||
}
|
||||
|
||||
enum class KeyboardPosition(private val stringId: Int) {
|
||||
Center(R.string.center),
|
||||
Right(R.string.right),
|
||||
Left(R.string.left);
|
||||
Left(R.string.left),
|
||||
;
|
||||
|
||||
@Composable
|
||||
fun title(): String {
|
||||
|
@ -185,7 +185,7 @@ fun performKeyAction(
|
||||
onToggleCapsLock: () -> Unit,
|
||||
onAutoCapitalize: (enable: Boolean) -> Unit,
|
||||
onSwitchLanguage: () -> Unit,
|
||||
onSwitchPosition: () -> Unit
|
||||
onSwitchPosition: () -> Unit,
|
||||
) {
|
||||
when (action) {
|
||||
is KeyAction.CommitText -> {
|
||||
@ -193,13 +193,13 @@ fun performKeyAction(
|
||||
Log.d(TAG, "committing key text: $text")
|
||||
ime.currentInputConnection.commitText(
|
||||
text,
|
||||
1
|
||||
1,
|
||||
)
|
||||
|
||||
if (autoCapitalize) {
|
||||
autoCapitalize(
|
||||
ime = ime,
|
||||
onAutoCapitalize = onAutoCapitalize
|
||||
onAutoCapitalize = onAutoCapitalize,
|
||||
)
|
||||
} else { // To return to MAIN mode after a shifted key action.
|
||||
onAutoCapitalize(false)
|
||||
@ -221,12 +221,12 @@ fun performKeyAction(
|
||||
ime.currentInputConnection.deleteSurroundingText(action.trimCount, 0)
|
||||
ime.currentInputConnection.commitText(
|
||||
text,
|
||||
1
|
||||
1,
|
||||
)
|
||||
if (autoCapitalize) {
|
||||
autoCapitalize(
|
||||
ime = ime,
|
||||
onAutoCapitalize = onAutoCapitalize
|
||||
onAutoCapitalize = onAutoCapitalize,
|
||||
)
|
||||
}
|
||||
}
|
||||
@ -248,12 +248,12 @@ fun performKeyAction(
|
||||
}
|
||||
KeyAction.IMECompleteAction -> {
|
||||
val imeAction = getImeActionCode(ime)
|
||||
if (arrayOf(
|
||||
if (listOf(
|
||||
EditorInfo.IME_ACTION_DONE,
|
||||
EditorInfo.IME_ACTION_GO,
|
||||
EditorInfo.IME_ACTION_NEXT,
|
||||
EditorInfo.IME_ACTION_SEARCH,
|
||||
EditorInfo.IME_ACTION_SEND
|
||||
EditorInfo.IME_ACTION_SEND,
|
||||
).contains(imeAction)
|
||||
) {
|
||||
ime.currentInputConnection.performEditorAction(imeAction)
|
||||
@ -299,7 +299,7 @@ fun getImeActionCode(ime: IMEService): Int {
|
||||
fun getKeyboardMode(ime: IMEService, autoCapitalize: Boolean): KeyboardMode {
|
||||
val inputType = ime.currentInputEditorInfo.inputType and (InputType.TYPE_MASK_CLASS)
|
||||
|
||||
return if (arrayOf(InputType.TYPE_CLASS_NUMBER, InputType.TYPE_CLASS_PHONE).contains(inputType)) {
|
||||
return if (listOf(InputType.TYPE_CLASS_NUMBER, InputType.TYPE_CLASS_PHONE).contains(inputType)) {
|
||||
KeyboardMode.NUMERIC
|
||||
} else {
|
||||
if (autoCapitalize && autoCapitalizeCheck(ime)) {
|
||||
@ -317,7 +317,7 @@ fun getImeActionText(ime: IMEService): String {
|
||||
|
||||
private fun autoCapitalize(
|
||||
ime: IMEService,
|
||||
onAutoCapitalize: (enable: Boolean) -> Unit
|
||||
onAutoCapitalize: (enable: Boolean) -> Unit,
|
||||
) {
|
||||
autoCapitalizeI(ime)
|
||||
|
||||
@ -329,7 +329,7 @@ private fun autoCapitalize(
|
||||
}
|
||||
|
||||
fun autoCapitalizeI(
|
||||
ime: IMEService
|
||||
ime: IMEService,
|
||||
) {
|
||||
// Capitalizes 'i'
|
||||
val textBefore = ime.currentInputConnection.getTextBeforeCursor(3, 0)
|
||||
@ -338,21 +338,21 @@ fun autoCapitalizeI(
|
||||
ime.currentInputConnection.deleteSurroundingText(2, 0)
|
||||
ime.currentInputConnection.commitText(
|
||||
"I ",
|
||||
1
|
||||
1,
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun autoCapitalizeCheck(
|
||||
ime: IMEService
|
||||
ime: IMEService,
|
||||
): Boolean {
|
||||
// Knows if its an empty field
|
||||
val empty = ime.currentInputConnection.getTextBeforeCursor(1, 0).isNullOrEmpty()
|
||||
|
||||
// For punctuation ending
|
||||
val textBefore = ime.currentInputConnection.getTextBeforeCursor(2, 0)
|
||||
return (arrayOf(". ", "? ", "! ").contains(textBefore)) || empty
|
||||
return (listOf(". ", "? ", "! ").contains(textBefore)) || empty
|
||||
}
|
||||
|
||||
fun deleteLastWord(ime: IMEService) {
|
||||
@ -371,9 +371,11 @@ fun deleteLastWord(ime: IMEService) {
|
||||
}
|
||||
|
||||
fun buildTapActions(
|
||||
keyItem: KeyItemC
|
||||
keyItem: KeyItemC,
|
||||
): List<KeyAction> {
|
||||
return listOf(keyItem.center.action, *keyItem.nextTapActions.orEmpty())
|
||||
val mutable = mutableListOf(keyItem.center.action)
|
||||
mutable.addAll(keyItem.nextTapActions.orEmpty())
|
||||
return mutable.toList()
|
||||
}
|
||||
|
||||
fun doneKeyAction(
|
||||
@ -381,7 +383,7 @@ fun doneKeyAction(
|
||||
action: KeyAction,
|
||||
pressed: MutableState<Boolean>,
|
||||
releasedKey: MutableState<String?>,
|
||||
animationHelperSpeed: Int
|
||||
animationHelperSpeed: Int,
|
||||
) {
|
||||
pressed.value = false
|
||||
scope.launch {
|
||||
@ -404,13 +406,13 @@ fun SimpleTopAppBar(
|
||||
text: String,
|
||||
navController: NavController,
|
||||
scrollBehavior: TopAppBarScrollBehavior? = null,
|
||||
showBack: Boolean = true
|
||||
showBack: Boolean = true,
|
||||
) {
|
||||
TopAppBar(
|
||||
scrollBehavior = scrollBehavior,
|
||||
title = {
|
||||
Text(
|
||||
text = text
|
||||
text = text,
|
||||
)
|
||||
},
|
||||
navigationIcon = {
|
||||
@ -418,11 +420,11 @@ fun SimpleTopAppBar(
|
||||
IconButton(onClick = { navController.navigate("settings") }) {
|
||||
Icon(
|
||||
Icons.Outlined.ArrowBack,
|
||||
contentDescription = stringResource(R.string.settings)
|
||||
contentDescription = stringResource(R.string.settings),
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
@ -437,14 +439,14 @@ fun Boolean.toInt() = this.compareTo(false)
|
||||
fun keyboardLayoutsSetFromString(layouts: String?): Set<Int> {
|
||||
return layouts?.split(",")?.map { it.trim().toInt() }?.toSet()
|
||||
?: setOf(
|
||||
DEFAULT_KEYBOARD_LAYOUT
|
||||
DEFAULT_KEYBOARD_LAYOUT,
|
||||
)
|
||||
}
|
||||
|
||||
fun keyboardLayoutsSetFromTitleIndex(layouts: String?): Set<Int> {
|
||||
return layouts?.split(",")?.map { keyboardTitleIndexFromRealIndex(it.trim().toInt()) }?.toSet()
|
||||
?: setOf(
|
||||
keyboardTitleIndexFromRealIndex(DEFAULT_KEYBOARD_LAYOUT)
|
||||
keyboardTitleIndexFromRealIndex(DEFAULT_KEYBOARD_LAYOUT),
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -7,18 +7,15 @@ buildscript {
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'com.android.application' version '8.2.0-alpha02' apply false
|
||||
id 'com.android.library' version '8.2.0-alpha02' apply false
|
||||
id 'com.android.application' version '8.2.0-alpha04' apply false
|
||||
id 'com.android.library' version '8.2.0-alpha04' apply false
|
||||
id 'org.jetbrains.kotlin.android' version '1.8.21' apply false
|
||||
id 'org.jmailen.kotlinter' version "3.13.0" apply false
|
||||
id 'org.jmailen.kotlinter' version "3.14.0" apply false
|
||||
id 'com.google.devtools.ksp' version "1.8.21-1.0.11" apply false
|
||||
}
|
||||
|
||||
subprojects {
|
||||
apply plugin: "org.jmailen.kotlinter" // Version should be inherited from parent
|
||||
kotlinter {
|
||||
disabledRules = ["no-wildcard-imports"]
|
||||
}
|
||||
}
|
||||
|
||||
task clean(type: Delete) {
|
||||
|
@ -5,8 +5,8 @@ pluginManagement {
|
||||
mavenCentral()
|
||||
}
|
||||
plugins {
|
||||
id 'com.android.application' version '8.2.0-alpha02'
|
||||
id 'com.android.library' version '8.2.0-alpha02'
|
||||
id 'com.android.application' version '8.2.0-alpha04'
|
||||
id 'com.android.library' version '8.2.0-alpha04'
|
||||
id 'org.jetbrains.kotlin.android' version '1.6.21'
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user