Class SDL_HapticCondition

    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.sun.jna.Structure

        com.sun.jna.Structure.ByReference, com.sun.jna.Structure.ByValue, com.sun.jna.Structure.FieldOrder, com.sun.jna.Structure.StructField
    • Field Summary

      Fields 
      Modifier and Type Field Description
      short button
      Button that triggers the effect.
      short[] center
      Position of the dead zone.
      short[] deadband
      Size of the dead zone; max 0xFFFF: whole axis-range when 0-centered.
      short delay
      Delay before starting the effect.
      SDL_HapticDirection direction
      Direction of the effect - Not used ATM.
      short interval
      How soon it can be triggered again after button.
      short[] leftCoeff
      How fast to increase the force towards the negative side.
      short[] leftSat
      Level when joystick is to the negative side; max 0xFFFF.
      int length
      Duration of the effect.
      short[] rightCoeff
      How fast to increase the force towards the positive side.
      short[] rightSat
      Level when joystick is to the positive side; max 0xFFFF.
      short type
      • Fields inherited from class com.sun.jna.Structure

        ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
    • Method Summary

      • Methods inherited from class com.sun.jna.Structure

        allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFieldOrder, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
    • Field Detail

      • length

        public int length
        Duration of the effect.
      • delay

        public short delay
        Delay before starting the effect.
      • button

        public short button
        Button that triggers the effect.
      • interval

        public short interval
        How soon it can be triggered again after button.
      • rightSat

        public short[] rightSat
        Level when joystick is to the positive side; max 0xFFFF.
      • leftSat

        public short[] leftSat
        Level when joystick is to the negative side; max 0xFFFF.
      • rightCoeff

        public short[] rightCoeff
        How fast to increase the force towards the positive side.
      • leftCoeff

        public short[] leftCoeff
        How fast to increase the force towards the negative side.
      • deadband

        public short[] deadband
        Size of the dead zone; max 0xFFFF: whole axis-range when 0-centered.
      • center

        public short[] center
        Position of the dead zone.
    • Constructor Detail

      • SDL_HapticCondition

        public SDL_HapticCondition()
      • SDL_HapticCondition

        public SDL_HapticCondition​(com.sun.jna.Pointer p)