File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -295,6 +295,7 @@ func (h *Haptic) Query() (uint32, error) {
295
295
}
296
296
297
297
// EffectSupported reports whether an effect is supported by a haptic device.
298
+ // Pass pointer to a Haptic struct (Constant|Periodic|Condition|Ramp|LeftRight|Custom) instead of HapticEffect union.
298
299
// (https://wiki.libsdl.org/SDL_HapticEffectSupported)
299
300
func (h * Haptic ) EffectSupported (he iHapticEffect ) (bool , error ) {
300
301
ret := int (C .SDL_HapticEffectSupported (
@@ -304,6 +305,7 @@ func (h *Haptic) EffectSupported(he iHapticEffect) (bool, error) {
304
305
}
305
306
306
307
// NewEffect creates a new haptic effect on a specified device.
308
+ // Pass pointer to a Haptic struct (Constant|Periodic|Condition|Ramp|LeftRight|Custom) instead of HapticEffect union.
307
309
// (https://wiki.libsdl.org/SDL_HapticNewEffect)
308
310
func (h * Haptic ) NewEffect (he iHapticEffect ) (int , error ) {
309
311
ret := int (C .SDL_HapticNewEffect (
@@ -313,6 +315,7 @@ func (h *Haptic) NewEffect(he iHapticEffect) (int, error) {
313
315
}
314
316
315
317
// UpdateEffect updates the properties of an effect.
318
+ // Pass pointer to a Haptic struct (Constant|Periodic|Condition|Ramp|LeftRight|Custom) instead of HapticEffect union.
316
319
// (https://wiki.libsdl.org/SDL_HapticUpdateEffect)
317
320
func (h * Haptic ) UpdateEffect (effect int , data iHapticEffect ) error {
318
321
return errorFromInt (int (
You can’t perform that action at this time.
0 commit comments