How do I read the Left and Right Shift keys (SOLVED)

0 favourites
  • 7 posts
From the Asset Store
Piano Keys
$3.99 USD
A musical typing game where the goal is to play a song by pressing the matching keys as fast as you can!
  • This question is because I am designing a Pinball Sandbox game that will allow users to create their own realistic pinball games and share them with friends.

    I have the game set up to use arrow keys and I will addd touch and mouse control but old school pinballers like to use the Shift keys as that is what is used in Visual Pinball.

    The problem is C2 just reads both keys as shift so I had to use Z and / instead and I would like to use the shift keys if possible.

    So has anyone got any ideas and maybe this is something Ashley can bring up as a fix for C2?

    Here is my Demo:

    https://www.scirra.com/arcade/tutorial-games/pinball-physics-demo-13984

  • I know the keycode for both shift keys are the same (16), so I don't think it's possible. Not easily anyway.

    Edit: I dug up these old posts. Not sure if they'll help or not though.

  • I know the keycode for both shift keys are the same (16), so I don't think it's possible. Not easily anyway.

    Edit: I dug up these old posts. Not sure if they'll help or not though.

    Thanks and that is what I suspected. Maybe Ashley will figure it out for a C2 update.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • try

    LeftShiftRight.capx

  • try

    LeftShiftRight.capx

    Right on Korbach- you are the man!

    Why hasn't someone done a tutorial on this or maybe they have?

    Ashley should include a function in the next update to read those keys.

    Now I can plug that in to my game tomorrow and make some old school pinballers happy and get them off my neck lol!

  • The only issue with that is the same drawback as with the plugin. You can't click them both at the same time (at least not as is).

  • The only issue with that is the same drawback as with the plugin. You can't click them both at the same time (at least not as is).

    Yup Burvey you are right and that won't work for my pinball game but might help people wanting to use shift keys for other games.

    I switched to Left Shift and Control for my game and that works well.

    Just so people know- not all keys are fast repeating keys like the arrow keys and they have a built in lag after you press so if you want to use fast repeater keys the shift and control and tab keys are fast repeaters for games.

    If you want to hold a button down with no lag time after the first press use those keys.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)