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 extern int rec_mode_active(void);
7
8 long lens_get_focus_pos()
9 {
10
11
12 if (rec_mode_active())
13 return _GetFocusLensSubjectDistance();
14 else
15 return 65535;
16 }
17
18 long lens_get_focus_pos_from_lens()
19 {
20
21
22 if (rec_mode_active())
23 return _GetFocusLensSubjectDistanceFromLens();
24 else
25 return CAMERA_MAX_DIST;
26 }
27
28
29 long lens_get_target_distance()
30 {
31
32
33 if (rec_mode_active())
34 return _GetCurrentTargetDistance();
35 else
36 return 65535;
37 }
38
39
40
41
42
43
44 int DoMFLock(void)
45 {
46 return(0);
47
48 }
49
50 int UnlockMF(void)
51 {
52 return(0);
53
54 }