diff --git a/config/VRJesterAPI.cfg b/config/VRJesterAPI.cfg new file mode 100644 index 0000000..74fbdcf --- /dev/null +++ b/config/VRJesterAPI.cfg @@ -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 + } + } +} \ No newline at end of file diff --git a/config/gesture_store.json b/config/gesture_store.json new file mode 100644 index 0000000..2fc6c79 --- /dev/null +++ b/config/gesture_store.json @@ -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": {} + } + ] + } + } +} \ No newline at end of file