License from €75
DE EN FR ES IT CZ

[SOLVED] Gamepad trigger support

This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials

  1. · 10 years ago
    Hello there,

    im trying to get my gamepad to run properly with lua script. Everything works fine unless i can't configure the shoulder trigger "buttons" of my gamepad. No event type is recognized by visionaire itself when i trigger the left or right trigger. It seems that the trigger buttons dont go under the "eEvtControllerKeyUp/Down" Events so maybe there is  another eventtype which is called and i dont know?

    Or are these triggers not implemented yet? When i go under the key actions of the game i also can't find them there... 


    Hopefully there is a solution to this

    Sebastian
  2. Working on a game?

    The free version covers up to 25 scenes per project. For more scenes and to sell your game, you need a license. Forum readers get the Indie Bundle 15 % off with the code FORUM15: €84.15 instead of €99, valid until 31 Dec 2026.

    Get 15 % off Try it for free
  3. · 10 years ago
    Hello Sebastian,

    the triggers are normally axes. So look there.
  4. · 10 years ago
    Ah, yes. Thanks =)
    Are there any Events which go with these so I can test if the trigger axis was pressed or released?

    Or am I right that this Axis (as well as the normal thumbsticks) produce also a keycode? Like when fully triggered = 100 and not triggered = 0 or something?

    EDIT:

     Works smile

    ...
    if string.match(character, 'TRIGGERLEFT') then
       if keycode > 1 then print("linker trigger gedrückt") else print("linker trigger losgelassen") end
      elseif string.match(character, 'TRIGGERRIGHT') then
       if keycode > 1 then print("rechter trigger gedrückt") else print("rechter trigger losgelassen") end
      end
    ...

This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.

New thread

Really delete this post?