Skip to content

Instantly share code, notes, and snippets.

@BobbyWibowo
Last active April 4, 2024 02:23
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save BobbyWibowo/01ce6785cb3a822e5eae745ccf27d12b to your computer and use it in GitHub Desktop.
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
}
]
}
@jyaucn
Copy link

jyaucn commented Mar 4, 2022

can u get banned from this, im kinda worried abt my genshin account

@ukw16
Copy link

ukw16 commented Jul 1, 2022

@jyaucn someone used it last month. I used it way back in 2.0 as a test. Nothing happened but if you don't want to risk it, don't do it.
Here's the post I'm referring to: https://www.reddit.com/r/Genshin_Impact/comments/v2k6yy/since_controller_support_for_android_is_not/?utm_medium=android_app&utm_source=share

@LeeRina19918
Copy link

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

@BobbyWibowo
Copy link
Author

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

image

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