-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathActionEvent.cs
81 lines (75 loc) · 2.55 KB
/
ActionEvent.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/******************************************************************************
* *
* PROJECT : Eos Digital camera Software Development Kit EDSDK *
* *
* Description: This is the Sample code to show the usage of EDSDK. *
* *
* *
*******************************************************************************
* *
* Written and developed by Canon Inc. *
* Copyright Canon Inc. 2018 All Rights Reserved *
* *
*******************************************************************************/
using System;
namespace CameraControl
{
public class ActionEvent
{
public enum Command
{
NONE,
DOWNLOAD,
TAKE_PICTURE,
SET_CAMERASETTING,
PRESS_COMPLETELY,
PRESS_HALFWAY,
PRESS_OFF,
START_EVF,
END_EVF,
GET_PROPERTY,
GET_PROPERTYDESC,
DOWNLOAD_EVF,
SET_AE_MODE,
SET_DRIVE_MODE,
SET_WHITE_BALANCE,
SET_METERING_MODE,
SET_EXPOSURE_COMPENSATION,
SET_IMAGEQUALITY,
SET_AV,
SET_TV,
SET_ISO_SPEED,
SET_EVF_AFMODE,
SET_ZOOM,
SET_AF_MODE,
SET_FLASH_MODE,
EVF_AF_ON,
EVF_AF_OFF,
FOCUS_NEAR1,
FOCUS_NEAR2,
FOCUS_NEAR3,
FOCUS_FAR1,
FOCUS_FAR2,
FOCUS_FAR3,
ZOOM_FIT,
ZOOM_ZOOM,
POSITION_UP,
POSITION_LEFT,
POSITION_RIGHT,
POSITION_DOWN,
REMOTESHOOTING_START,
REMOTESHOOTING_STOP,
SHUT_DOWN,
CLOSING
}
private Command _command = Command.NONE;
private IntPtr _arg;
public ActionEvent(Command command, IntPtr arg)
{
_command = command;
_arg = arg;
}
public Command GetActionCommand() { return _command; }
public IntPtr GetArg() { return _arg; }
}
}