mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-07 08:07:18 +02:00
Palworld: only activate gyro when aiming
This commit is contained in:
parent
11cbcd03d3
commit
afef9cbfda
@ -6,6 +6,20 @@
|
|||||||
"type-a": {
|
"type-a": {
|
||||||
"name": "Type A",
|
"name": "Type A",
|
||||||
"content": {
|
"content": {
|
||||||
|
"layers": {
|
||||||
|
"EnableGyro": {
|
||||||
|
"sensors": [
|
||||||
|
{
|
||||||
|
"type": "gyroscope",
|
||||||
|
"axis": {
|
||||||
|
"input": "axisXY",
|
||||||
|
"output": "rightJoystick",
|
||||||
|
"sensitivity": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
"left": {
|
"left": {
|
||||||
"inner": [
|
"inner": [
|
||||||
{
|
{
|
||||||
@ -53,7 +67,13 @@
|
|||||||
"radial": true
|
"radial": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": "rightTrigger",
|
"action": [
|
||||||
|
"rightTrigger",
|
||||||
|
{
|
||||||
|
"type": "layer",
|
||||||
|
"target": "EnableGyro"
|
||||||
|
}
|
||||||
|
],
|
||||||
"styles": {
|
"styles": {
|
||||||
"default": {
|
"default": {
|
||||||
"knob": {
|
"knob": {
|
||||||
@ -91,7 +111,11 @@
|
|||||||
],
|
],
|
||||||
"renderAsButton": true,
|
"renderAsButton": true,
|
||||||
"action": [
|
"action": [
|
||||||
"leftBumper"
|
"leftBumper",
|
||||||
|
{
|
||||||
|
"type": "layer",
|
||||||
|
"target": "EnableGyro"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -110,7 +134,11 @@
|
|||||||
],
|
],
|
||||||
"renderAsButton": true,
|
"renderAsButton": true,
|
||||||
"action": [
|
"action": [
|
||||||
"rightBumper"
|
"rightBumper",
|
||||||
|
{
|
||||||
|
"type": "layer",
|
||||||
|
"target": "EnableGyro"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -129,7 +157,11 @@
|
|||||||
],
|
],
|
||||||
"renderAsButton": true,
|
"renderAsButton": true,
|
||||||
"action": [
|
"action": [
|
||||||
"leftTrigger"
|
"leftTrigger",
|
||||||
|
{
|
||||||
|
"type": "layer",
|
||||||
|
"target": "EnableGyro"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -162,7 +194,13 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"type": "button",
|
"type": "button",
|
||||||
"action": "leftTrigger",
|
"action": [
|
||||||
|
"leftTrigger",
|
||||||
|
{
|
||||||
|
"type": "layer",
|
||||||
|
"target": "EnableGyro"
|
||||||
|
}
|
||||||
|
],
|
||||||
"styles": {
|
"styles": {
|
||||||
"default": {
|
"default": {
|
||||||
"faceImage": {
|
"faceImage": {
|
||||||
@ -219,7 +257,11 @@
|
|||||||
"renderAsButton": true,
|
"renderAsButton": true,
|
||||||
"action": [
|
"action": [
|
||||||
"rightTrigger",
|
"rightTrigger",
|
||||||
"leftTrigger"
|
"leftTrigger",
|
||||||
|
{
|
||||||
|
"type": "layer",
|
||||||
|
"target": "EnableGyro"
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"styles": {
|
"styles": {
|
||||||
"default": {
|
"default": {
|
||||||
@ -267,17 +309,7 @@
|
|||||||
"action": "view"
|
"action": "view"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
}
|
||||||
"sensors": [
|
|
||||||
{
|
|
||||||
"type": "gyroscope",
|
|
||||||
"axis": {
|
|
||||||
"input": "axisXY",
|
|
||||||
"output": "rightJoystick",
|
|
||||||
"sensitivity": 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user