This source file includes following definitions.
- lens_get_focus_pos
- lens_get_focus_pos_from_lens
- lens_get_target_distance
- DoMFLock
- UnlockMF
1 #include "keyboard.h"
2 #include "conf.h"
3 #include "platform.h"
4 #include "../generic/wrappers.c"
5
6 long lens_get_focus_pos()
7 {
8 static long v=CAMERA_MAX_DIST;
9 return (kbd_is_key_pressed(KEY_SHOOT_HALF) || camera_info.state.state_kbd_script_run || shooting_get_focus_mode())?v=_GetFocusLensSubjectDistance():v;
10 }
11
12 long lens_get_focus_pos_from_lens()
13 {
14 static long v=CAMERA_MAX_DIST;
15 return (kbd_is_key_pressed(KEY_SHOOT_HALF) || camera_info.state.state_kbd_script_run || shooting_get_focus_mode())?v=_GetFocusLensSubjectDistanceFromLens():v;
16 }
17
18 long lens_get_target_distance()
19 {
20 static long v=CAMERA_MAX_DIST;
21 return (kbd_is_key_pressed(KEY_SHOOT_HALF) || camera_info.state.state_kbd_script_run || shooting_get_focus_mode())?v=_GetCurrentTargetDistance():v;
22 }
23
24
25
26
27
28 int DoMFLock(void)
29 {
30 return(0);
31
32 }
33
34 int UnlockMF(void)
35 {
36 return(0);
37
38 }