Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
inputManagerDoc.c
Go to the documentation of this file.
1
8
32
33#ifdef DOXYGEN
34
36void OnUpdate()
37{
38 JoystickDeviceHandler handler = g_Game.GetInputManager().GetJoystickDeviceHandler();
39
40 if (DbgUI.Button("FFB Force"))
41 {
42 handler.StartFFEffectConstantForce(0, 0, JoystickFFEffectType.CONSTANT_FORCE, 0.2, 1000);
43 }
44
45 if (DbgUI.Button("FFB Spring"))
46 {
47 handler.StartFFEffectCondition(0, 0, JoystickFFEffectType.SPRING, 1.0, 0.1);
48 }
49
50 if (DbgUI.Button("FFB Damper"))
51 {
52 handler.StartFFEffectCondition(0, 0, JoystickFFEffectType.DAMPER, 1.0, 0.1);
53 }
54
55 if (DbgUI.Button("FFB Inertia"))
56 {
57 handler.StartFFEffectCondition(0, 0, JoystickFFEffectType.INERTIA, 1.0, 0.1);
58 }
59
60 if (DbgUI.Button("FFB Friction"))
61 {
62 handler.StartFFEffectCondition(0, 0, JoystickFFEffectType.FRICTION, 1.0, 0.1);
63 }
64
65 if (DbgUI.Button("FFB Ramp"))
66 {
67 handler.StartFFEffectRamp(0, 0, JoystickFFEffectType.RAMP_FORCE, 1.0, 0.1);
68 }
69
70 if (DbgUI.Button("FFB Square"))
71 {
72 handler.StartFFEffectPeriodic(0, 0, JoystickFFEffectType.SQUARE, 0.3, 100);
73 }
74
75 if (DbgUI.Button("FFB Sine"))
76 {
77 handler.StartFFEffectPeriodic(0, 0, JoystickFFEffectType.SINE, 0.3, 100);
78 }
79
80 if (DbgUI.Button("FFB Combined"))
81 {
82 handler.StartFFEffectPeriodic(0, 0, JoystickFFEffectType.SQUARE, 0.2, 10);
83 handler.StartFFEffectCondition(0, 1, JoystickFFEffectType.SPRING, 0.3, 0.3);
84 handler.StartFFEffectCondition(0, 2, JoystickFFEffectType.SPRING, 0.5, 0.5, fDeadBand: 0.15);
85 }
86
87 if (DbgUI.Button("FFB Stop"))
88 {
89 handler.StopForceFeedbackEffect(0, -1);
90 }
91}
93#endif
override void OnUpdate()
Definition DbgUI.c:66
Game g_Game
Game singleton instance.
Definition gameLib.c:13
JoystickFFEffectType
Joystick force feedback effects.