HISE Logo Forum
    • Categories
    • Register
    • Login

    Is there an easier way to let "shift" and other modifier keys into consumed keypresses?

    Scheduled Pinned Locked Moved Scripting
    3 Posts 2 Posters 76 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.
    • VirtualVirginV
      VirtualVirgin
      last edited by

      HISE doesn't seem to allow me to use just the keycode ("16") of shift to let it pass.
      The only way I found to let it in is by copying every single key that I would like to use it as a modifier for changing the boolean, such as:

      [{
      	"keyCode": 63232,
      	"description": "cursor up",
      	"shift": false,
      	"cmd": false,
      	"alt": false
      },
      {
      	"keyCode": 63232,
      	"description": "cursor up + shift",
      	"shift": true,
      	"cmd": false,
      	"alt": false
      },
      

      So that gets quite redundant.
      Is there some easier way to let "shift" through with less code?

      You can listen to my orchestral mockups here:
      https://www.virtualvirgin.net/

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

        @VirtualVirgin Got a snippet?

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

        VirtualVirginV 1 Reply Last reply Reply Quote 0
        • VirtualVirginV
          VirtualVirgin @d.healey
          last edited by

          @d-healey After I thought about it, I decided I only needed it to modify 2 keys, so not much work doing it with little copy pasta from the above.

          You can listen to my orchestral mockups here:
          https://www.virtualvirgin.net/

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          35

          Online

          1.8k

          Users

          12.1k

          Topics

          105.0k

          Posts