motion-capture 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/project/motion-capture.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d6077491aed6ea870d7b11b9f43d3d2626227e4
|
4
|
+
data.tar.gz: 2200a6cd83b7e830eea2d69a0754fd9546283b42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f91edaa92370bf2e24943d0b5ffb84be8b4f35231afe9eee80fe8b33b86ae8ad8401d951ae6f32cf24fe550745124b8c8bf0c6d726d243c3f7253ce7ade0637
|
7
|
+
data.tar.gz: 3955f8667dd0198ffb7cbdf8a981ebdc139891f98c8e59d2105d1f2b395703cd28b6fee89f8503b5969e72e24ec17f67cbeae5f30592c093069f147a7166f56e
|
@@ -122,6 +122,14 @@ module Motion; class Capture
|
|
122
122
|
session.sessionPreset = preset if can_set_preset? preset
|
123
123
|
end
|
124
124
|
|
125
|
+
def preset
|
126
|
+
session.captureSession if @session
|
127
|
+
end
|
128
|
+
|
129
|
+
def flash
|
130
|
+
device.flashMode if @device
|
131
|
+
end
|
132
|
+
|
125
133
|
def set_flash(mode = :auto)
|
126
134
|
configure_with_lock do
|
127
135
|
device.flashMode = FLASH_MODES[mode] if FLASH_MODES.keys.include? mode
|