QtScrcpy/keymap/FRAG.json
Sven Eden 5cec73b6f0 Enhance speedRatio setting and allow individual axis values (#270 #290) (#354)
* Enhance speedRatio settings (#270 #290)

This commit changes the way the mouse sensitivity works as follows:

1. Turn speedRatio into a QPointF, so we have two floats instead of
   one integer.
2. Default the y-speedRatio to be x-speedRatio / 2.25, which takes
   the ultra-wideness of modern phone screens into account.
3. Add new configuration value speedRatioX to allow users to
   configure an individual X-ratio
4. Add new configuration value speedRatioY to allow users to
   configure an individual Y-ratio
5. Optimze distance-translation a bit.
6. Add keymaps/FRAG.json using new speedRatioX/speedRatioY for the
   game "FRAG! Pro Shooter"

Bug: #270
Bug: #290
Signed-off-by: Sven Eden <sven.eden@prydeworx.com>

* Document new speedRatio behavior in docs/KeyMapDes.md

Signed-off-by: Sven Eden <sven.eden@prydeworx.com>
2021-03-06 14:54:25 +08:00

119 lines
1.9 KiB
JSON

{
"old-switchKey": "Key_QuoteLeft",
"switchKey": "RightButton",
"mouseMoveMap": {
"startPos": {
"x": 0.5,
"y": 0.5
},
"speedRatioX": 3.25,
"speedRatioY": 1.25
},
"keyMapNodes": [{
"comment": "Steering Wheel",
"type": "KMT_STEER_WHEEL",
"centerPos": {
"x": 0.194792,
"y": 0.716484
},
"leftOffset": 0.15,
"rightOffset": 0.15,
"upOffset": 0.15,
"downOffset": 0.15,
"leftKey": "Key_A",
"rightKey": "Key_D",
"upKey": "Key_W",
"downKey": "Key_S"
},
{
"comment": "Activate item under crosshair",
"type": "KMT_CLICK",
"key": "LeftButton",
"pos": {
"x": 0.51875,
"y": 0.496703
},
"switchMap": false
},
{
"comment": "Activate first special skill",
"type": "KMT_CLICK",
"key": "Key_E",
"pos": {
"x": 0.909375,
"y": 0.542857
},
"switchMap": false
},
{
"comment": "Activate Chat",
"type": "KMT_CLICK",
"key": "Key_C",
"pos": {
"x": 0.905208,
"y": 0.254945
},
"switchMap": false
},
{
"comment": "Chat option 1",
"type": "KMT_CLICK",
"key": "Key_1",
"pos": {
"x": 0.875,
"y": 0.523077
},
"switchMap": false
},
{
"comment": "Chat option 2",
"type": "KMT_CLICK",
"key": "Key_2",
"pos": {
"x": 0.875,
"y": 0.606593
},
"switchMap": false
},
{
"comment": "Chat option 3",
"type": "KMT_CLICK",
"key": "Key_3",
"pos": {
"x": 0.875,
"y": 0.685714
},
"switchMap": false
},
{
"comment": "Chat option 4",
"type": "KMT_CLICK",
"key": "Key_4",
"pos": {
"x": 0.875,
"y": 0.756044
},
"switchMap": false
},
{
"comment": "Chat option 5",
"type": "KMT_CLICK",
"key": "Key_5",
"pos": {
"x": 0.875,
"y": 0.832967
},
"switchMap": false
},
{
"comment": "Chat option 6",
"type": "KMT_CLICK",
"key": "Key_6",
"pos": {
"x": 0.875,
"y": 0.911273
},
"switchMap": false
}
]
}