HISE Logo Forum
    • Categories
    • Register
    • Login

    CMD + Click Event for Sliders

    Scheduled Pinned Locked Moved Solved General Questions
    eventcallbackssliderpanelclickable
    3 Posts 2 Posters 287 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • oskarshO
      oskarsh
      last edited by

      Hey y'all,
      is there a way to get a CMD + Click Event for a Slider control?

      I tried wrapping the Slider in a Panel and allow all Callbacks. However it seems like these events are not firing when you drag or click the slider inside the Panel, only when you click the Panel around the Slider.

      I would like to be able to get a alternative effect when cmd / strg clicking on the Slider (Bypass effect).

      HISE Developer for hire :)

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @oskarsh
        last edited by

        @oskarsh Use a broadcaster

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        oskarshO 1 Reply Last reply Reply Quote 1
        • oskarshO
          oskarsh @d.healey
          last edited by

          @d-healey Yes I just noticed that I can just use a Broadcaster and I got it working.

          const var knobShortcutWatcher = Engine.createBroadcaster({
          	"id": "effectKnobsOnClickStatus",
          	"args": ["component", "event"]
          });
          
          knobShortcutWatcher.attachToComponentMouseEvents("sliderId", "Clicks Only", "Mouse Listener for Effect Controls");
          knobShortcutWatcher.addListener("RefreshFunction", "Bypasses Effect",function(component, event)
          {
          	if (event.cmdDown) {
          		Console.print('CMD / STRG CLICK');
          	}
          });
          

          HISE Developer for hire :)

          1 Reply Last reply Reply Quote 0
          • oskarshO oskarsh marked this topic as a question on
          • oskarshO oskarsh has marked this topic as solved on
          • J jojojojonas referenced this topic on
          • First post
            Last post

          50

          Online

          1.7k

          Users

          11.7k

          Topics

          102.2k

          Posts