Skip to content

Instantly share code, notes, and snippets.

@BobbyWibowo
Last active October 9, 2025 19:10
Show Gist options
  • Select an option

  • Save BobbyWibowo/01ce6785cb3a822e5eae745ccf27d12b to your computer and use it in GitHub Desktop.

Select an option

Save BobbyWibowo/01ce6785cb3a822e5eae745ccf27d12b to your computer and use it in GitHub Desktop.
QtScrcpy custom key maps for Genshin Impact.
{
"switchKey": "Key_QuoteLeft",
"mouseMoveMap": {
"startPos": {
"x": 0.5,
"y": 0.32
},
"speedRatio": 3.5
},
"keyMapNodes": [
{
"comment": "Character Movement - WASD",
"type": "KMT_STEER_WHEEL",
"centerPos": {
"x": 0.183581,
"y": 0.763636
},
"leftOffset": 0.1,
"rightOffset": 0.1,
"upOffset": 0.2167,
"downOffset": 0.2167,
"leftKey": "Key_A",
"rightKey": "Key_D",
"upKey": "Key_W",
"downKey": "Key_S"
},
{
"comment": "Attack - LMB",
"type": "KMT_CLICK",
"key": "LeftButton",
"pos": {
"x": 0.799222,
"y": 0.76431
},
"switchMap": false
},
{
"comment": "Elemental Skill - E",
"type": "KMT_CLICK",
"key": "Key_E",
"pos": {
"x": 0.721401,
"y": 0.863636
},
"switchMap": false
},
{
"comment": "Sprint - RMB",
"type": "KMT_CLICK",
"key": "RightButton",
"pos": {
"x": 0.877821,
"y": 0.858586
},
"switchMap": false
},
{
"comment": "Sprint - Shift",
"type": "KMT_CLICK",
"key": "Key_Shift",
"pos": {
"x": 0.877821,
"y": 0.858586
},
"switchMap": false
},
{
"comment": "Jump - Space",
"type": "KMT_CLICK",
"key": "Key_Space",
"pos": {
"x": 0.878599,
"y": 0.654882
},
"switchMap": false
},
{
"comment": "Elemental Burst - Q",
"type": "KMT_CLICK",
"key": "Key_Q",
"pos": {
"x": 0.649027,
"y": 0.900673
},
"switchMap": false
},
{
"comment": "Open Inventory - B",
"type": "KMT_CLICK",
"key": "Key_B",
"pos": {
"x": 0.87393,
"y": 0.0572391
},
"switchMap": false
},
{
"comment": "Open Character Screen - C",
"type": "KMT_CLICK",
"key": "Key_C",
"pos": {
"x": 0.921401,
"y": 0.0572391
},
"switchMap": false
},
{
"comment": "Open Map - M",
"type": "KMT_CLICK",
"key": "Key_M",
"pos": {
"x": 0.129183,
"y": 0.143098
},
"switchMap": false
},
{
"comment": "Open Wish Screen - F3",
"type": "KMT_CLICK",
"key": "Key_F3",
"pos": {
"x": 0.777432,
"y": 0.0538721
},
"switchMap": false
},
{
"comment": "Open Adventurer Handbook Screen - F1",
"type": "KMT_CLICK",
"key": "Key_F1",
"pos": {
"x": 0.825681,
"y": 0.0505051
},
"switchMap": false
},
{
"comment": "Open Paimon Menu - Esc",
"type": "KMT_CLICK",
"key": "Key_Escape",
"pos": {
"x": 0.0700389,
"y": 0.0622896
},
"switchMap": false
},
{
"comment": "Open Quest Menu - J",
"type": "KMT_CLICK",
"key": "Key_J",
"pos": {
"x": 0.0692607,
"y": 0.237374
},
"switchMap": false
},
{
"comment": "Quest Navigation - V",
"type": "KMT_CLICK",
"key": "Key_V",
"pos": {
"x": 0.106615,
"y": 0.318182
},
"switchMap": false
},
{
"comment": "Open Co-Op Screen - F2",
"type": "KMT_CLICK",
"key": "Key_F2",
"pos": {
"x": 0.235019,
"y": 0.0555556
},
"switchMap": false
},
{
"comment": "Elemental Sight (Tap) - MMB",
"type": "KMT_CLICK",
"key": "MiddleButton",
"pos": {
"x": 0.18677,
"y": 0.0521886
},
"switchMap": false
},
{
"comment": "Elemental Sight (Tap) - Back Button",
"type": "KMT_CLICK",
"key": "BackButton",
"pos": {
"x": 0.18677,
"y": 0.0521886
},
"switchMap": false
},
{
"comment": "Switch Character 1 - 1",
"type": "KMT_CLICK",
"key": "Key_1",
"pos": {
"x": 0.87,
"y": 0.215
},
"switchMap": false
},
{
"comment": "Switch Character 2 - 2",
"type": "KMT_CLICK",
"key": "Key_2",
"pos": {
"x": 0.87,
"y": 0.320
},
"switchMap": false
},
{
"comment": "Switch Character 3 - 3",
"type": "KMT_CLICK",
"key": "Key_3",
"pos": {
"x": 0.87,
"y": 0.425
},
"switchMap": false
},
{
"comment": "Switch Character 4 - 4",
"type": "KMT_CLICK",
"key": "Key_4",
"pos": {
"x": 0.87,
"y": 0.530
},
"switchMap": false
},
{
"comment": "Switch Character 1 and Use Elemental Burst - 5",
"type": "KMT_CLICK",
"key": "Key_5",
"pos": {
"x": 0.81,
"y": 0.215
},
"switchMap": false
},
{
"comment": "Switch Character 2 and Use Elemental Burst - 6",
"type": "KMT_CLICK",
"key": "Key_6",
"pos": {
"x": 0.81,
"y": 0.320
},
"switchMap": false
},
{
"comment": "Switch Character 3 and Use Elemental Burst - 7",
"type": "KMT_CLICK",
"key": "Key_7",
"pos": {
"x": 0.81,
"y": 0.425
},
"switchMap": false
},
{
"comment": "Switch Character 4 and Use Elemental Burst - 8",
"type": "KMT_CLICK",
"key": "Key_8",
"pos": {
"x": 0.81,
"y": 0.530
},
"switchMap": false
},
{
"comment": "Switch Aiming Mode - R",
"type": "KMT_CLICK",
"key": "Key_R",
"pos": {
"x": 0.694163,
"y": 0.747475
},
"switchMap": false
},
{
"comment": "Pick Up/Interact - F",
"type": "KMT_CLICK",
"key": "Key_F",
"pos": {
"x": 0.71032,
"y": 0.5
},
"switchMap": false
},
{
"comment": "Switch Walk/Run - Left Ctrl",
"type": "KMT_CLICK",
"key": "Key_Control",
"pos": {
"x": 0.933852,
"y": 0.947811
},
"switchMap": false
},
{
"comment": "Check Tutorial Details - G",
"type": "KMT_CLICK",
"key": "Key_G",
"pos": {
"x": 0.5,
"y": 0.747475
},
"switchMap": false
},
{
"comment": "Open the Events Menu - F5",
"type": "KMT_CLICK",
"key": "Key_F5",
"pos": {
"x": 0.679377,
"y": 0.0589226
},
"switchMap": false
},
{
"comment": "Open Battle Pass Screen - F4",
"type": "KMT_CLICK",
"key": "Key_F4",
"pos": {
"x": 0.729183,
"y": 0.0622896
},
"switchMap": false
},
{
"comment": "Quick-use Gadget - Z",
"type": "KMT_CLICK",
"key": "Key_Z",
"pos": {
"x": 0.330961,
"y": 0.898305
},
"switchMap": false
}
]
}
@LeeRina19918

Copy link
Copy Markdown

 Hi! How do u now what x-y position?

@BobbyWibowo

Copy link
Copy Markdown
Author

@LeeRina19918 When clicking on the Android viewport with left mouse button, QtScrcpy's console will output the XY relative coordinates:

image

@JagritGumber

Copy link
Copy Markdown

Works on Redmi13C, Mine is 20:9 but it mostly works I will only find in time if there are some issues

@w4po

w4po commented Dec 15, 2024

Copy link
Copy Markdown

Hi, I've just made a visual key mapper for QtScrcpy: https://github.com/w4po/ScrcpyKeyMapper

@BobbyWibowo

Copy link
Copy Markdown
Author

@w4po thanks for sharing, it looks great!

Also, good news to other Android players that still play Genshin
Official controller support for Android is finally getting added to the game
It's currently already available in 5.5 closed beta (source), and is expected to make it to the final release version in 26 March 2025 🎉

@ukw16

ukw16 commented Feb 25, 2025

Copy link
Copy Markdown

@w4po thanks for sharing, it looks great!

Also, good news to other Android players that still play Genshin Official controller support for Android is finally getting added to the game It's currently already available in 5.5 closed beta (source), and is expected to make it to the final release version in 26 March 2025 🎉

I finally have an excuse to return lmao

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment