QtScrcpy原神键盘映射脚本

声明

本脚本为个人闲暇时间制作,仅作分享,不喜勿喷。用电脑控制手机玩原神是一种迫于无奈的解决方案,这个解决方案的出现是由于以下原因:1、本人习惯用电脑打游戏;2、游戏本体太大,本人的笔记本硬盘装不下(又不想买硬盘);3、游戏需要较强算力,本人在外只能用笔记本打游戏过瘾,本人在外使用的是轻薄本,算力不足;4、云游戏流量消耗太大,又需要较好的网络环境,本人负担不起。

脚本说明

本脚本按照原神PC端键位进行映射,由于客户端不同,有很多功能实现不了,部分功能体验较差

目前无法实现的功能: 道具快捷切换,角色大招快捷释放,呼出快捷轮盘,快捷打开队伍配置界面,快捷打开好友界面,第五个角色的切换

体验较差的功能:1、摇杆移动会异常偏移;2、队伍角色切换,电脑端可以同时显示4个角色,手机端只能显示3个且位置会变;3、所有需要呼出鼠标功能的界面(如背包)体验较差
 

本脚本不一定适用于所有机型,如出现映射错误,请自行修改脚本。本人手机UI边界偏移为60 

QtScrcpy脚本规则:docs/KeyMapDes_zh.md · Barry/QtScrcpy - Gitee.com

推荐的脚本编辑工具:Sublime Text - Text Editing, Done Right 

为支持原作者,本人不提供其它下载渠道

QtScrcpy原始链接:QtScrcpy: Android实时投屏软件,此应用程序提供USB(或通过TCP/IP)连接的Android设备的显示和控制。它不需要任何root访问权限

脚本代码
{
	
	"switchKey": "Key_QuoteLeft",
	"mouseMoveMap": {
		"startPos": {
			"x": 0.50,
			"y": 0.42
		},
		"speedRatioX": 3.25,
		"speedRatioY": 1.00,
		"smallEyes": {
			"comment": "无效按键",
			"type": "KMT_CLICK",
			"key": "Key_0",
			"pos": {
				"x": 0.33,
				"y": 0.88
			},
			"switchMap": false
		},
		"speedRatio": 10
	},
	"keyMapNodes": [
		{
			"comment": "方向盘",
			"type": "KMT_STEER_WHEEL",
			"centerPos": {
				"x": 0.1833,
				"y": 0.7600
			},
			"leftOffset": 0.20,
			"rightOffset": 0.20,
			"upOffset": 0.20,
			"downOffset": 0.20,
			"leftKey": "Key_A",
			"rightKey": "Key_D",
			"upKey": "Key_W",
			"downKey": "Key_S"
		},
		{
			"comment": "攻击",
			"type": "KMT_CLICK",
			"key": "LeftButton",
			"pos": {
				"x": 0.80,
				"y": 0.75
			},
			"switchMap": false
		},
		{
			"comment": "跳跃",
			"type": "KMT_CLICK",
			"key": "Key_Space",
			"pos": {
				"x": 0.87,
				"y": 0.65
			},
			"switchMap": false
		},
		{
			"comment": "鼠标触发冲刺",
			"type": "KMT_CLICK",
			"key": "RightButton",
			"pos": {
				"x": 0.87,
				"y": 0.85
			},
			"switchMap": false
		},
		{
			"comment": "按键触发冲刺",
			"type": "KMT_CLICK",
			"key": "Key_Shift",
			"pos": {
				"x": 0.87,
				"y": 0.85
			},
			"switchMap": false
		},
		{
			"comment": "技能",
			"type": "KMT_CLICK",
			"key": "Key_E",
			"pos": {
				"x": 0.72,
				"y": 0.85
			},
			"switchMap": false
		},
		{
			"comment": "大招",
			"type": "KMT_CLICK",
			"key": "Key_Q",
			"pos": {
				"x": 0.65,
				"y": 0.89
			},
			"switchMap": false
		},
		{
			"comment": "瞄准",
			"type": "KMT_CLICK",
			"key": "Key_R",
			"pos": {
				"x": 0.69,
				"y": 0.75
			},
			"switchMap": false
		},
		{
			"comment": "跑步行走切换",
			"type": "KMT_CLICK",
			"key": "Key_Control",
			"pos": {
				"x": 0.93,
				"y": 0.94
			},
			"switchMap": false
		},
		{
			"comment": "道具",
			"type": "KMT_CLICK",
			"key": "Key_Z",
			"pos": {
				"x": 0.33,
				"y": 0.88
			},
			"switchMap": false
		},
		{
			"comment": "任务",
			"type": "KMT_CLICK",
			"key": "Key_J",
			"pos": {
				"x": 0.07,
				"y": 0.23
			},
			"switchMap": true
		},
		{
			"comment": "地图",
			"type": "KMT_CLICK",
			"key": "Key_M",
			"pos": {
				"x": 0.13,
				"y": 0.13
			},
			"switchMap": true
		},
		{
			"comment": "多人游戏",
			"type": "KMT_CLICK",
			"key": "Key_F2",
			"pos": {
				"x": 0.22,
				"y": 0.04
			},
			"switchMap": true
		},
		{
			"comment": "元素视野",
			"type": "KMT_CLICK",
			"key": "MiddleButton",
			"pos": {
				"x": 0.18,
				"y": 0.04
			},
			"switchMap": false
		},
		{
			"comment": "活动",
			"type": "KMT_CLICK",
			"key": "Key_F5",
			"pos": {
				"x": 0.68,
				"y": 0.05
			},
			"switchMap": true
		},
		{
			"comment": "纪行",
			"type": "KMT_CLICK",
			"key": "Key_F4",
			"pos": {
				"x": 0.73,
				"y": 0.05
			},
			"switchMap": true
		},
		{
			"comment": "祈愿",
			"type": "KMT_CLICK",
			"key": "Key_F3",
			"pos": {
				"x": 0.78,
				"y": 0.05
			},
			"switchMap": true
		},
		{
			"comment": "冒险手册",
			"type": "KMT_CLICK",
			"key": "Key_F1",
			"pos": {
				"x": 0.82,
				"y": 0.05
			},
			"switchMap": true
		},
		{
			"comment": "背包",
			"type": "KMT_CLICK",
			"key": "Key_B",
			"pos": {
				"x": 0.87,
				"y": 0.05
			},
			"switchMap": true
		},
		{
			"comment": "角色界面",
			"type": "KMT_CLICK",
			"key": "Key_C",
			"pos": {
				"x": 0.92,
				"y": 0.05
			},
			"switchMap": true
		},
		{
			"comment": "队伍角色1",
			"type": "KMT_CLICK",
			"key": "Key_1",
			"pos": {
				"x": 0.90,
				"y": 0.21
			},
			"switchMap": false
		},
		{
			"comment": "队伍角色2",
			"type": "KMT_CLICK",
			"key": "Key_2",
			"pos": {
				"x": 0.90,
				"y": 0.31
			},
			"switchMap": false
		},
		{
			"comment": "队伍角色3",
			"type": "KMT_CLICK",
			"key": "Key_3",
			"pos": {
				"x": 0.90,
				"y": 0.42
			},
			"switchMap": false
		},
		{
			"comment": "对话交互",
			"type": "KMT_CLICK",
			"key": "Key_F",
			"pos": {
				"x": 0.62,
				"y": 0.49
			},
			"switchMap": false
		},
		{
			"comment": "特殊功能键(如四叶印)",
			"type": "KMT_CLICK",
			"key": "Key_T",
			"pos": {
				"x": 0.74,
				"y": 0.63
			},
			"switchMap": false
		},
		{
			"comment": "任务追踪",
			"type": "KMT_CLICK",
			"key": "Key_V",
			"pos": {
				"x": 0.09,
				"y": 0.31
			},
			"switchMap": false
		},
		{
			"comment": "派蒙菜单、退出",
			"type": "KMT_CLICK",
			"key": "Key_Escape",
			"pos": {
				"x": 0.06,
				"y": 0.05
			},
			"switchMap": true
		},
		{
			"comment": "落下",
			"type": "KMT_CLICK",
			"key": "Key_X",
			"pos": {
				"x": 0.80,
				"y": 0.75
			},
			"switchMap": false
		},
		{
			"comment": "中断挑战",
			"type": "KMT_CLICK",
			"key": "Key_P",
			"pos": {
				"x": 0.11,
				"y": 0.43
			},
			"switchMap": true
		},
		{
			"comment": "特殊环境说明",
			"type": "KMT_CLICK",
			"key": "Key_U",
			"pos": {
				"x": 0.05,
				"y": 0.14
			},
			"switchMap": true
		},
		{
			"comment": "特殊环境说明",
			"type": "KMT_CLICK",
			"key": "Key_Return",
			"pos": {
				"x": 0.07,
				"y": 0.91
			},
			"switchMap": true
		},
		{
			"comment": "查看教程详情",
			"type": "KMT_CLICK",
			"key": "Key_G",
			"pos": {
				"x": 0.49,
				"y": 0.71
			},
			"switchMap": true
		}
	]
}

  • 19
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 5
    评论
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值