Added Gesture Config

This commit is contained in:
incidentalstoat 2024-08-22 17:52:53 -05:00
parent 0d1f504166
commit 2b25c68ce7
2 changed files with 289 additions and 0 deletions

67
config/VRJesterAPI.cfg Normal file
View file

@ -0,0 +1,67 @@
{
"RECOGNIZE_ON": "RECOGNIZE",
"GESTURE_NAME": "GESTURE 1",
"RECORD_MODE": false,
"READ_DATA": false,
"WRITE_DATA": false,
"DEMO_MODE": true,
"DEBUG_MODE": false,
"VIRTUAL_SPHERE_RADIUS": 0.3,
"INTERVAL_DELAY": 15,
"MAX_LISTENING_TIME": 400,
"GESTURE_KEY_MAPPINGS": {
"GESTURE 3": {
"KEY_MAPPING": "spell_engine.spell_hotbar_1",
"KEY_ACTION": "click"
},
"STRIKEL": {
"KEY_MAPPING": "spell_engine.spell_hotbar_2",
"KEY_ACTION": "click"
},
"LEFTL": {
"KEY_MAPPING": "spell_engine.spell_hotbar_3",
"KEY_ACTION": "hold"
},
"UPL": {
"KEY_MAPPING": "spell_engine.spell_hotbar_4",
"KEY_ACTION": "hold"
},
"RIGHTL": {
"KEY_MAPPING": "spell_engine.spell_hotbar_5",
"KEY_ACTION": "hold"
},
"DOWNL": {
"KEY_MAPPING": "spell_engine.spell_hotbar_6",
"KEY_ACTION": "hold"
},
"STRIKER": {
"KEY_MAPPING": "spell_engine.spell_hotbar_7",
"KEY_ACTION": "hold"
},
"LEFTR": {
"KEY_MAPPING": "spell_engine.spell_hotbar_8",
"KEY_ACTION": "hold"
},
"DOWNR": {
"KEY_MAPPING": "spell_engine.spell_hotbar_9",
"KEY_ACTION": "hold"
}
},
"TESTING_GESTURES": {
"BURST": {
"velocity": 1.0,
"rcParticle": 3,
"lcParticle": 3
},
"STRIKE": {
"velocity": 1.0,
"rcParticle": 0,
"lcParticle": 0
},
"UPPERCUT": {
"velocity": 0.25,
"rcParticle": 3,
"lcParticle": 3
}
}
}

222
config/gesture_store.json Normal file
View file

@ -0,0 +1,222 @@
{
"GESTURES": {
"BURST": {
"RIGHT_CONTROLLER": [
{
"vrDevice": "RIGHT_CONTROLLER",
"movement": "forward",
"elapsedTime": 2000,
"speed": 0.0,
"direction": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"devicesInProximity": {}
}
],
"LEFT_CONTROLLER": [
{
"vrDevice": "LEFT_CONTROLLER",
"movement": "forward",
"elapsedTime": 2000,
"speed": 0.0,
"direction": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"devicesInProximity": {}
}
]
},
"STRIKEL": {
"LEFT_CONTROLLER": [
{
"vrDevice": "LEFT_CONTROLLER",
"movement": "forward",
"elapsedTime": 0,
"speed": 0.0,
"direction": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"devicesInProximity": {}
}
]
},
"STRIKER": {
"RIGHT_CONTROLLER": [
{
"vrDevice": "RIGHT_CONTROLLER",
"movement": "forward",
"elapsedTime": 0,
"speed": 0.0,
"direction": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"devicesInProximity": {}
}
]
},
"DOWNL": {
"LEFT_CONTROLLER": [
{
"vrDevice": "LEFT_CONTROLLER",
"movement": "down",
"elapsedTime": 0,
"speed": 0.0,
"direction": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"devicesInProximity": {}
}
]
},
"DOWNR": {
"RIGHT_CONTROLLER": [
{
"vrDevice": "RIGHT_CONTROLLER",
"movement": "down",
"elapsedTime": 0,
"speed": 0.0,
"direction": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"devicesInProximity": {}
}
]
},
"LEFTL": {
"LEFT_CONTROLLER": [
{
"vrDevice": "LEFT_CONTROLLER",
"movement": "left",
"elapsedTime": 0,
"speed": 0.0,
"direction": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"devicesInProximity": {}
}
]
},
"LEFTR": {
"RIGHT_CONTROLLER": [
{
"vrDevice": "RIGHT_CONTROLLER",
"movement": "left",
"elapsedTime": 0,
"speed": 0.0,
"direction": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"devicesInProximity": {}
}
]
},
"RIGHTL": {
"LEFT_CONTROLLER": [
{
"vrDevice": "LEFT_CONTROLLER",
"movement": "right",
"elapsedTime": 0,
"speed": 0.0,
"direction": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"devicesInProximity": {}
}
]
},
"RIGHTR": {
"RIGHT_CONTROLLER": [
{
"vrDevice": "RIGHT_CONTROLLER",
"movement": "right",
"elapsedTime": 0,
"speed": 0.0,
"direction": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"devicesInProximity": {}
}
]
},
"UPL": {
"LEFT_CONTROLLER": [
{
"vrDevice": "LEFT_CONTROLLER",
"movement": "up",
"elapsedTime": 0,
"speed": 0.0,
"direction": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"devicesInProximity": {}
}
]
},
"UPR": {
"RIGHT_CONTROLLER": [
{
"vrDevice": "RIGHT_CONTROLLER",
"movement": "up",
"elapsedTime": 0,
"speed": 0.0,
"direction": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"devicesInProximity": {}
}
]
},
"UPPERCUT": {
"RIGHT_CONTROLLER|LEFT_CONTROLLER": [
{
"vrDevice": "RIGHT_CONTROLLER|LEFT_CONTROLLER",
"movement": "forward",
"elapsedTime": 0,
"speed": 0.0,
"direction": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"devicesInProximity": {}
},
{
"vrDevice": "RIGHT_CONTROLLER|LEFT_CONTROLLER",
"movement": "up",
"elapsedTime": 0,
"speed": 0.0,
"direction": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"devicesInProximity": {}
}
]
}
}
}