Debian Codegraph @

lib/forcefeedback.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 --- HISTORICAL COMMENTS FOLLOW ---
19
20 * $Logfile: /DescentIII/Main/lib/forcefeedback.h $
21 * $Revision: 15 $
22 * $Date: 7/28/99 3:23p $
23 * $Author: Kevin $
24 *
25 * Low-Level ForceFeedback header
26 *
27 * $Log: /DescentIII/Main/lib/forcefeedback.h $
28 *
29 * 15 7/28/99 3:23p Kevin
30 * Macintosh
31 *
32 * 14 4/16/99 8:28p Jeff
33 * moved placement of #endif
34 *
35 * 13 4/15/99 1:44a Jeff
36 * changes for linux compile
37 *
38 * 12 1/30/99 11:27p Jeff
39 * added immersion support
40 *
41 * 11 1/28/99 12:09p Jeff
42 * added force feedback to player shake...fixed spelling error in define
43 * for forcefeedback
44 *
45 * 10 1/13/99 6:48a Jeff
46 * made file linux friendly (removed dinput specific stuff to ifdef)
47 *
48 * 8 11/10/98 5:16p Jeff
49 * updated forcefeedback system...pretty complete now
50 *
51 * 7 11/06/98 7:00p Jeff
52 * first round of new force feedback installed
53 *
54 * 6 11/03/98 6:43p Jeff
55 * new low-level & high level Force Feedback system implemented, handles
56 * window losing focus, etc.
57 *
58 * 5 10/12/98 3:49p Jeff
59 * struct changes
60 *
61 * 4 9/21/98 11:10a Jeff
62 * general update, new low level, small high level implementation
63 *
64 * 3 9/18/98 7:38p Jeff
65 * creation of low-level forcefeedback and beginning of high-level
66 * forcefeedback
67 *
68 * 2 9/15/98 12:05p Jeff
69 * initial creation of low-level forcefeedback
70 *
71 * $NoKeywords: $
72 */
73 #ifndef __DDIO_FORCEFEEDBACK_H_
74 #define __DDIO_FORCEFEEDBACK_H_cxx . . $ `lib/forcefeedback.h:74:9`!
75 #include <cstdint>
76 #include "pstypes.h"cxx . . $ `<file>/lib/pstypes.h`/
77 #include "string.h"
78 #define kMAX_Strcxx . . $ `lib/forcefeedback.h:78:9`! 80
79 #define kInfinite_Durationcxx . . $ `lib/forcefeedback.h:79:9`! 0xFFFFFF
80 #define FF_USEENVELOPEcxx . . $ `lib/forcefeedback.h:80:9`! 0x01
81 #define HZ_to_uScxx . . $ `lib/forcefeedback.h:81:9`!(hz) ((int)(1000000.0 / (double)(hz) + 0.5))
82 #define DDIO_FF_MAXEFFECTScxx . . $ `lib/forcefeedback.h:82:9`! 30
83 #if defined(WIN32)
84 // WINDOWS
85 #include "win/DirectX/dinput.h"
86 #define FF_DEGREES DI_DEGREES
87 #define FF_NOMINALMAX DI_FFNOMINALMAX
88 #define FF_SECONDS DI_SECONDS
89 #else
90 #define FF_DEGREEScxx . . $ `lib/forcefeedback.h:90:9`! 360 // fake value
91 #define FF_NOMINALMAXcxx . . $ `lib/forcefeedback.h:91:9`! 10000 // fake value
92 #define FF_SECONDScxx . . $ `lib/forcefeedback.h:92:9`! 1000 // fake value
93 #endif
94 #define FORCEPROJECTcxx . . $ `lib/forcefeedback.h:94:9`! void *
95 enum tDevicecxx . . $ tDevice# {
96 kJoy1cxx . . $ kJoy1. = 0,
97 kJoy2cxx . . $ kJoy2.,
98 kJoy3cxx . . $ kJoy3.,
99 kJoy4cxx . . $ kJoy4.,
100 kJoy5cxx . . $ kJoy5.,
101 kJoy6cxx . . $ kJoy6.,
102 kJoy7cxx . . $ kJoy7.,
103 kJoy8cxx . . $ kJoy8.,
104 kJoy9cxx . . $ kJoy9.,
105 kJoy10cxx . . $ kJoy10.,
106 kJoy11cxx . . $ kJoy11.,
107 kJoy12cxx . . $ kJoy12.,
108 kJoy13cxx . . $ kJoy13.,
109 kJoy14cxx . . $ kJoy14.,
110 kJoy15cxx . . $ kJoy15.,
111 kJoy16cxx . . $ kJoy16.,
112 kMaxJoycxx . . $ kMaxJoy.,
113 kMousecxx . . $ kMouse.,
114 kKeyBoardcxx . . $ kKeyBoard.,
115 kAllDevicescxx . . $ kAllDevices.
116 };
117 enum tJoyButtonscxx . . $ tJoyButtons# {
118 kNoButtoncxx . . $ kNoButton. = -1,
119 kButton0cxx . . $ kButton0. = 0,
120 kButton1cxx . . $ kButton1.,
121 kButton2cxx . . $ kButton2.,
122 kButton3cxx . . $ kButton3.,
123 kButton4cxx . . $ kButton4.,
124 kButton5cxx . . $ kButton5.,
125 kButton6cxx . . $ kButton6.,
126 kButton7cxx . . $ kButton7.,
127 kButton8cxx . . $ kButton8.,
128 kButton9cxx . . $ kButton9.,
129 kButton10cxx . . $ kButton10.,
130 kButton31cxx . . $ kButton31. = 31,
131 kButtonMaxcxx . . $ kButtonMax.
132 };
133 enum tDeviceMaskcxx . . $ tDeviceMask# {
134 kStickcxx . . $ kStick. = 1 << 0,
135 kWheelcxx . . $ kWheel. = 1 << 1,
136 kGamePadcxx . . $ kGamePad. = 1 << 2,
137 };
138 struct tFFJoyInfocxx . . $ tFFJoyInfo# {
139 int ButtonMaskcxx . . $ tFFJoyInfo#ButtonMask.;
140 int AxisMaskcxx . . $ tFFJoyInfo#AxisMask.;
141 tDeviceMaskcxx . . $ tDeviceMask# DevTypecxx . . $ tFFJoyInfo#DevType.;
142 char Namecxx . . $ tFFJoyInfo#Name.[kMAX_Strcxx . . $ `lib/forcefeedback.h:78:9`!];
143 };
144 enum tLoadEffectcxx . . $ tLoadEffect# {
145 kDontPlayNowcxx . . $ kDontPlayNow. = 0,
146 kPlayNowcxx . . $ kPlayNow.,
147 kPlayNowIfModifiedcxx . . $ kPlayNowIfModified.,
148 };
149 enum tEffTypecxx . . $ tEffType# {
150 kConstantcxx . . $ kConstant. = 0,
151 kRampcxx . . $ kRamp.,
152 kCustomcxx . . $ kCustom.,
153 kWave_Squarecxx . . $ kWave_Square.,
154 kWave_Sinecxx . . $ kWave_Sine.,
155 kWave_Trianglecxx . . $ kWave_Triangle.,
156 kWave_SawUpcxx . . $ kWave_SawUp.,
157 kWave_SawDowncxx . . $ kWave_SawDown.,
158 kCondition_Springcxx . . $ kCondition_Spring.,
159 kCondition_Dampercxx . . $ kCondition_Damper.,
160 kCondition_Inertiacxx . . $ kCondition_Inertia.,
161 kCondition_Frictioncxx . . $ kCondition_Friction.,
162 kMaxEffectSubTypescxx . . $ kMaxEffectSubTypes.
163 };
164 struct tEffConstantcxx . . $ tEffConstant# {
165 int32_tcxx . . $ int32_t# Magcxx . . $ tEffConstant#Mag.; // +- 10,000
166 };
167 struct tEffRampcxx . . $ tEffRamp# {
168 int32_tcxx . . $ int32_t# Startcxx . . $ tEffRamp#Start.; // +- 10,000
169 int32_tcxx . . $ int32_t# Endcxx . . $ tEffRamp#End.; // +- 10,000
170 };
171 struct tEffWavecxx . . $ tEffWave# {
172 uint32_tcxx . . $ uint32_t# Magcxx . . $ tEffWave#Mag.; // 0 to 10,000
173 int32_tcxx . . $ int32_t# Offsetcxx . . $ tEffWave#Offset.; // +- 10,000
174 uint32_tcxx . . $ uint32_t# Phasecxx . . $ tEffWave#Phase.; // 0 to 35,999
175 uint32_tcxx . . $ uint32_t# Periodcxx . . $ tEffWave#Period.;
176 };
177 struct tEffConditioncxx . . $ tEffCondition# {
178 int32_tcxx . . $ int32_t# Offsetcxx . . $ tEffCondition#Offset.; // +- 10,000
179 int32_tcxx . . $ int32_t# PositiveCoefficientcxx . . $ tEffCondition#PositiveCoefficient.; // +- 10,000
180 int32_tcxx . . $ int32_t# NegativeCoefficientcxx . . $ tEffCondition#NegativeCoefficient.; // +- 10,000
181 uint32_tcxx . . $ uint32_t# PositiveSaturationcxx . . $ tEffCondition#PositiveSaturation.; // 0 to 10,000
182 uint32_tcxx . . $ uint32_t# NegativeSaturationcxx . . $ tEffCondition#NegativeSaturation.; // 0 to 10,000
183 int32_tcxx . . $ int32_t# DeadBandcxx . . $ tEffCondition#DeadBand.; // 0 to 10,000
184 };
185 struct tEffCustomcxx . . $ tEffCustom# {
186 int Channelscxx . . $ tEffCustom#Channels.;
187 int Periodcxx . . $ tEffCustom#Period.;
188 int Samplescxx . . $ tEffCustom#Samples.;
189 int32_tcxx . . $ int32_t# *ForceDatacxx . . $ tEffCustom#ForceData.;
190 };
191 union tEffInfocxx . . $ tEffInfo# {
192 tEffConstantcxx . . $ tEffConstant# Constantcxx . . $ tEffInfo#Constant.;
193 tEffRampcxx . . $ tEffRamp# Rampcxx . . $ tEffInfo#Ramp.;
194 tEffWavecxx . . $ tEffWave# Wavecxx . . $ tEffInfo#Wave.;
195 tEffConditioncxx . . $ tEffCondition# Conditioncxx . . $ tEffInfo#Condition.;
196 tEffCustomcxx . . $ tEffCustom# Customcxx . . $ tEffInfo#Custom.;
197 };
198 struct tEffEnvelopecxx . . $ tEffEnvelope# {
199 uint32_tcxx . . $ uint32_t# AttackLevelcxx . . $ tEffEnvelope#AttackLevel.;
200 uint32_tcxx . . $ uint32_t# AttackTimecxx . . $ tEffEnvelope#AttackTime.;
201 uint32_tcxx . . $ uint32_t# FadeLevelcxx . . $ tEffEnvelope#FadeLevel.;
202 uint32_tcxx . . $ uint32_t# FadeTimecxx . . $ tEffEnvelope#FadeTime.;
203 };
204 enum tEffAxiscxx . . $ tEffAxis# { kXAxisOnlycxx . . $ kXAxisOnly., kYAxisOnlycxx . . $ kYAxisOnly., kBothAxescxx . . $ kBothAxes. };
205 struct tFFB_Effectcxx . . $ tFFB_Effect# {
206 int Flagscxx . . $ tFFB_Effect#Flags.;
207 tEffTypecxx . . $ tEffType# Typecxx . . $ tFFB_Effect#Type.;
208 // tEffInfo TypeInfo[2];
209 tEffInfocxx . . $ tEffInfo# TypeInfocxx . . $ tFFB_Effect#TypeInfo.;
210 uint32_tcxx . . $ uint32_t# Durationcxx . . $ tFFB_Effect#Duration.;
211 uint32_tcxx . . $ uint32_t# Gaincxx . . $ tFFB_Effect#Gain.; // 0-10000 -- scales all magnitudes and envelope
212 uint32_tcxx . . $ uint32_t# Periodcxx . . $ tFFB_Effect#Period.;
213 tEffAxiscxx . . $ tEffAxis# Axiscxx . . $ tFFB_Effect#Axis.;
214 tJoyButtonscxx . . $ tJoyButtons# Triggercxx . . $ tFFB_Effect#Trigger.;
215 uint32_tcxx . . $ uint32_t# TriggerRepeatTimecxx . . $ tFFB_Effect#TriggerRepeatTime.;
216 int32_tcxx . . $ int32_t# Directioncxx . . $ tFFB_Effect#Direction.; // 0 to 360 deg.
217 tEffEnvelopecxx . . $ tEffEnvelope# Envelopecxx . . $ tFFB_Effect#Envelope.;
218 };
219 extern bool ddForce_foundcxx . . $ ddForce_found.; // a Force Feedback device was found
220 extern bool ddForce_enabledcxx . . $ ddForce_enabled.; // Force Feedback is ready and can be used
221 // ===================================================================
222 // Function Prototypes
223 // ===================================================================
224 // -------------------------------------------------------------------
225 // ddio_ff_AttachForce
226 // Purpose:
227 // Attaches variables initialized in the general ddio system to
228 // the force feedback system.
229 // -------------------------------------------------------------------
230 void ddio_ff_AttachForcecxx . . $ ddio_ff_AttachForce(49f6e7a06ebc5aa8).(void);
231 // -------------------------------------------------------------------
232 // ddio_ff_DetachForce
233 // Purpose:
234 // Detaches variables used by the force-feedback system from the
235 // ddio system
236 // -------------------------------------------------------------------
237 void ddio_ff_DetachForcecxx . . $ ddio_ff_DetachForce(49f6e7a06ebc5aa8).(void);
238 // -------------------------------------------------------------------
239 // ddio_ff_Init
240 // Purpose:
241 // Initialize force feedback if available.
242 // -------------------------------------------------------------------
243 int ddio_ff_Initcxx . . $ ddio_ff_Init(b126dc7c1de90089).(void);
244 // -------------------------------------------------------------------
245 // ddio_ffjoy_Init
246 // Purpose:
247 // Creates and acquires all joysticks
248 //
249 // Input:
250 // None
251 //
252 // Return:
253 // # of sticks acquired
254 //
255 // Description:
256 //
257 // -------------------------------------------------------------------
258 int ddio_ffjoy_Initcxx . . $ ddio_ffjoy_Init(b126dc7c1de90089).(void);
259 // -------------------------------------------------------------------
260 // ddio_ff_Acquire
261 // Purpose:
262 // Acquires a direct input device for use.
263 //
264 // Input:
265 // The device to acquire (use kDI_MaxJoy to acquire all available
266 // joysticks).
267 //
268 // Return:
269 // # of devices acquired.
270 //
271 // Description:
272 // Call this to gain access to a device after the device has been
273 // created & after regaining the focus after losing it.
274 //
275 // -------------------------------------------------------------------
276 int ddio_ff_Acquirecxx . . $ ddio_ff_Acquire(26fe897a51c542a4).(tDevicecxx . . $ tDevice# dev);
277 // -------------------------------------------------------------------
278 // ddio_ff_Unacquire
279 // Purpose:
280 // Unacquires a direct input device
281 //
282 // Input:
283 // The device to unacquire (use kDI_MaxJoy to unacquire all available
284 // joysticks).
285 //
286 // Return:
287 // # of devices unacquired.
288 //
289 // Description:
290 // Call this to lose access to a device after the device has been
291 // aquired
292 //
293 // -------------------------------------------------------------------
294 int ddio_ff_Unacquirecxx . . $ ddio_ff_Unacquire(26fe897a51c542a4).(tDevicecxx . . $ tDevice# dev);
295 // -------------------------------------------------------------------
296 // ddio_ff_SetCoopLevel
297 // -------------------------------------------------------------------
298 static int ddio_ff_SetCoopLevelcxx . . $ ddio_ff_SetCoopLevel(92adebaa4e3d0ab4).(tDevicecxx . . $ tDevice# dev, int coop_level);
299 // -------------------------------------------------------------------
300 // ddio_ffjoy_Query
301 // Purpose:
302 // Besides checking what buttons/axis are available, this function
303 // also checks for force feedback support.
304 // -------------------------------------------------------------------
305 int ddio_ffjoy_Querycxx . . $ ddio_ffjoy_Query(5e6c31919538799a).(int dev, int *but_flags, int *axis_flags);
306 /*
307 ========================================================================
308 Force Feedback Effect Functions
309 ========================================================================
310 */
311 // -------------------------------------------------------------------
312 // ddio_ff_GetInfo
313 // Purpose:
314 // Returns information about the current state of the low-level
315 // Force Feedback system.
316 // -------------------------------------------------------------------
317 void ddio_ff_GetInfocxx . . $ ddio_ff_GetInfo(4bbb0be6c29741a8).(bool *ff_found, bool *ff_enabled);
318 // -------------------------------------------------------------------
319 // ddio_ffb_Pause
320 // Purpose:
321 // Pause the FFB output on the given device. Use ddio_ffb_Continue to
322 // continue where you left off.
323 // -------------------------------------------------------------------
324 void ddio_ffb_Pausecxx . . $ ddio_ffb_Pause(f43dad817d2338e0).(tDevicecxx . . $ tDevice# dev);
325 // -------------------------------------------------------------------
326 // ddio_ffb_Continue
327 // Purpose:
328 // Unpause the FFB output on the given device. Complimentary to
329 // ddio_ffb_Pause.
330 // -------------------------------------------------------------------
331 void ddio_ffb_Continuecxx . . $ ddio_ffb_Continue(f43dad817d2338e0).(tDevicecxx . . $ tDevice# dev);
332 // -------------------------------------------------------------------
333 // ddio_ffb_Enable
334 // Purpose:
335 // Must be called after initialization in order to activate the
336 // device.
337 // Use ddio_ffb_Pause & ddio_ffb_Continue if you want disable forces
338 // temporarily and resume later.
339 // -------------------------------------------------------------------
340 void ddio_ffb_Enablecxx . . $ ddio_ffb_Enable(f43dad817d2338e0).(tDevicecxx . . $ tDevice# dev);
341 // -------------------------------------------------------------------
342 // ddio_ffb_Disable
343 // Purpose:
344 // Turns off FFB, but effects still play on processor.
345 // -------------------------------------------------------------------
346 void ddio_ffb_Disablecxx . . $ ddio_ffb_Disable(f43dad817d2338e0).(tDevicecxx . . $ tDevice# dev);
347 // -------------------------------------------------------------------
348 // ddio_ffb_effectCreate
349 // Purpose:
350 // Create a single effect for future playback.
351 // Effect is given a logical ID
352 // -------------------------------------------------------------------
353 int ddio_ffb_effectCreatecxx . . $ ddio_ffb_effectCreate(a1a9b5f9dbd44d87).(tDevicecxx . . $ tDevice# dev, tFFB_Effectcxx . . $ tFFB_Effect# *eff);
354 // -------------------------------------------------------------------
355 // ddio_ffb_DestroyAll
356 // Purpose:
357 // Destroys all created effects
358 // -------------------------------------------------------------------
359 void ddio_ffb_DestroyAllcxx . . $ ddio_ffb_DestroyAll(49f6e7a06ebc5aa8).(void);
360 // -------------------------------------------------------------------
361 // ddio_ffb_effectPlay
362 // Purpose:
363 // Play an effect that was previously created.
364 // -------------------------------------------------------------------
365 void ddio_ffb_effectPlaycxx . . $ ddio_ffb_effectPlay(68e3ae50fe6578a9).(int16_tcxx . . $ int16_t# eID);
366 // -------------------------------------------------------------------
367 // ddio_ffb_effectStop
368 // Purpose:
369 // Stop a single effect.
370 // -------------------------------------------------------------------
371 void ddio_ffb_effectStopcxx . . $ ddio_ffb_effectStop(68e3ae50fe6578a9).(int16_tcxx . . $ int16_t# eID);
372 // -------------------------------------------------------------------
373 // ddio_ffb_effectStopAll
374 // Purpose:
375 // Stops all forces on the given device.
376 // -------------------------------------------------------------------
377 void ddio_ffb_effectStopAllcxx . . $ ddio_ffb_effectStopAll(f43dad817d2338e0).(tDevicecxx . . $ tDevice# dev);
378 // -------------------------------------------------------------------
379 // ddio_ffb_effectUnload
380 // Purpose:
381 // Unload a single effect... Necessary to make room for other
382 // effects.
383 // -------------------------------------------------------------------
384 void ddio_ffb_effectUnloadcxx . . $ ddio_ffb_effectUnload(68e3ae50fe6578a9).(int16_tcxx . . $ int16_t# eID);
385 // -------------------------------------------------------------------
386 // ddio_ffb_effectModify
387 // Purpose:
388 // Modifies a single effect, only if the given parameters are
389 // different from what's currently loaded.
390 // -------------------------------------------------------------------
391 void ddio_ffb_effectModifycxx . . $ ddio_ffb_effectModify(8430b8f3687e862e).(int16_tcxx . . $ int16_t# eID, int *Direction, uint32_tcxx . . $ uint32_t# *Duration, uint32_tcxx . . $ uint32_t# *Gain, uint32_tcxx . . $ uint32_t# *Period,
392 tEffInfocxx . . $ tEffInfo# *TypeInfo, tEffEnvelopecxx . . $ tEffEnvelope# *Envelope);
393 // -------------------------------------------------------------------
394 // ddio_ffb_GetEffectData
395 // Purpose:
396 // Retrieves affect data for the given parameters, pass NULL for those you don't want
397 // -------------------------------------------------------------------
398 void ddio_ffb_GetEffectDatacxx . . $ ddio_ffb_GetEffectData(8430b8f3687e862e).(int16_tcxx . . $ int16_t# eID, int *Direction, uint32_tcxx . . $ uint32_t# *Duration, uint32_tcxx . . $ uint32_t# *Gain, uint32_tcxx . . $ uint32_t# *Period,
399 tEffInfocxx . . $ tEffInfo# *TypeInfo, tEffEnvelopecxx . . $ tEffEnvelope# *Envelope);
400 // -------------------------------------------------------------------
401 // ddio_ffjoy_EnableAutoCenter
402 // Purpose:
403 // Disables/Enables the autocentering of the joystick
404 // -------------------------------------------------------------------
405 void ddio_ffjoy_EnableAutoCentercxx . . $ ddio_ffjoy_EnableAutoCenter(d995ce785ab4d998).(tDevicecxx . . $ tDevice# dev, bool enable);
406 // -------------------------------------------------------------------
407 // ddio_ffjoy_SetGain
408 // Purpose:
409 // Sets the gain for joystick, pass a value of 0-1
410 // -------------------------------------------------------------------
411 void ddio_ffjoy_SetGaincxx . . $ ddio_ffjoy_SetGain(95a5e220a55e1aa2).(tDevicecxx . . $ tDevice# dev, float value);
412 // -------------------------------------------------------------------
413 // ddio_ffjoy_IsAutoCentered
414 // Purpose:
415 // Returns true if the joystick is set for autocentering
416 // -------------------------------------------------------------------
417 bool ddio_ffjoy_IsAutoCenteredcxx . . $ ddio_ffjoy_IsAutoCentered(19cec9addbf44e16).(tDevicecxx . . $ tDevice# dev);
418 // -------------------------------------------------------------------
419 // ddio_ffjoy_SupportAutoCenter
420 // Purpose:
421 // Returns true if the FF joystick supports auto centering
422 // -------------------------------------------------------------------
423 bool ddio_ffjoy_SupportAutoCentercxx . . $ ddio_ffjoy_SupportAutoCenter(19cec9addbf44e16).(tDevicecxx . . $ tDevice# dev);
424 /*
425 ===========================================================================
426 Private Functions
427 ===========================================================================
428 */
429 #if defined(WIN32)
430 // -------------------------------------------------------------------
431 // ddio_ffjoy_AcquireErr
432 // Purpose:
433 // Handle success/err reporting
434 // -------------------------------------------------------------------
435 static int ddio_ffjoy_AcquireErr(HRESULT res, int dev_num);
436 // -------------------------------------------------------------------
437 // FFEnumCallback
438 // Purpose:
439 // Initialize all connected joysticks.
440 //
441 // Input:
442 // pdinst info about the current joystick being enumed.
443 // pvRef the direct input object that was passed in before
444 // starting the enum process.
445 // Return:
446 // DIENUM_CONTINUE continue calling us with any more devices
447 // DIENUM_STOP all done, don't call us back anymore, go away.
448 // -------------------------------------------------------------------
449 BOOL CALLBACK FFEnumCallback(LPCDIDEVICEINSTANCE pdinst, LPVOID pvRef);
450 #endif
451 // Given a filename resource, this loads the file and creates a resource
452 // for it. It returns a handle to that resource.
453 // If it returns NULL, then it couldn't load the project.
454 // Make sure device is aquired before calling.
455 FORCEPROJECTcxx . . $ `lib/forcefeedback.h:94:9`! ddio_ForceLoadProjectcxx . . $ ddio_ForceLoadProject(a4cb1b1855214071).(char *filename, tDevicecxx . . $ tDevice# dev);
456 // Unloads a FORCEPROJECT file
457 void ddio_ForceUnloadProjectcxx . . $ ddio_ForceUnloadProject(5d22bdacc48458e8).(FORCEPROJECTcxx . . $ `lib/forcefeedback.h:94:9`! prj);
458 // Given a handle to a resource, and the name of the effect to load
459 // it will load that effect. Returns the effect ID, or -1 if it couldn't
460 // be created
461 int ddio_CreateForceFromProjectcxx . . $ ddio_CreateForceFromProject(f53b6be6549e6d95).(FORCEPROJECTcxx . . $ `lib/forcefeedback.h:94:9`! project, const char *forcename);
462 #endif