Inherits Leap.Interface.
|
| Config () |
| Constructs a Config object.
|
|
bool | GetBool (string key) |
| Gets the boolean representation for the specified key.
|
|
float | GetFloat (string key) |
| Gets the floating point representation for the specified key.
|
|
int | GetInt32 (string key) |
| Gets the 32-bit integer representation for the specified key.
|
|
string | GetString (string key) |
| Gets the string representation for the specified key.
|
|
bool | Save () |
| Saves the current state of the config.
|
|
bool | SetBool (string key, bool value) |
| Sets the boolean representation for the specified key.
|
|
bool | SetFloat (string key, float value) |
| Sets the floating point representation for the specified key.
|
|
bool | SetInt32 (string key, int value) |
| Sets the 32-bit integer representation for the specified key.
|
|
bool | SetString (string key, string value) |
| Sets the string representation for the specified key.
|
|
Config.ValueType | Type (string key) |
| Reports the natural data type for the value related to the specified key.
|
|
The Config class provides access to Leap Motion system configuration information.
You can get and set gesture configuration parameters using the Config object obtained from a connected Controller object. The key strings required to identify a configuration parameter include:
Key string | Value type | Default value | Units |
Gesture.Circle.MinRadius | float | 5.0 | mm |
Gesture.Circle.MinArc | float | 1.5*pi | radians |
Gesture.Swipe.MinLength | float | 150 | mm |
Gesture.Swipe.MinVelocity | float | 1000 | mm/s |
Gesture.KeyTap.MinDownVelocity | float | 50 | mm/s |
Gesture.KeyTap.HistorySeconds | float | 0.1 | s |
Gesture.KeyTap.MinDistance | float | 3.0 | mm |
Gesture.ScreenTap.MinForwardVelocity | float | 50 | mm/s |
Gesture.ScreenTap.HistorySeconds | float | 0.1 | s |
Gesture.ScreenTap.MinDistance | float | 5.0 | mm |
After setting a configuration value, you must call the Config::save method to commit the changes. The configuration value changes are not persistent; your application needs to set the values everytime it runs.
- See Also
- CircleGesture
-
KeyTapGesture
-
ScreenTapGesture
-
SwipeGesture