Warning: Undefined array key "p" in /home/clients/a70cbb4a74edf8105da5fd7e142fb9de/web/forum/includes/vb5/template.php(404) : eval()'d code on line 794 Warning: Undefined array key "p" in /home/clients/a70cbb4a74edf8105da5fd7e142fb9de/web/forum/includes/vb5/template.php(404) : eval()'d code on line 794 Warning: Undefined array key "p" in /home/clients/a70cbb4a74edf8105da5fd7e142fb9de/web/forum/includes/vb5/template.php(404) : eval()'d code on line 794 Warning: Undefined array key "p" in /home/clients/a70cbb4a74edf8105da5fd7e142fb9de/web/forum/includes/vb5/template.php(404) : eval()'d code on line 794 Warning: Undefined array key "p" in /home/clients/a70cbb4a74edf8105da5fd7e142fb9de/web/forum/includes/vb5/template.php(404) : eval()'d code on line 794 Warning: Undefined array key "p" in /home/clients/a70cbb4a74edf8105da5fd7e142fb9de/web/forum/includes/vb5/template.php(404) : eval()'d code on line 794 Emulate specific function keys (e.g. LEFT-Shift) - OSCulator Forum

Announcement

Collapse
No announcement yet.

Emulate specific function keys (e.g. LEFT-Shift)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Emulate specific function keys (e.g. LEFT-Shift)

    Hello,

    is it possible to emulate for instance the "Left Shift"-Key and not just "Shift".
    Some Games require this and have no Controller-Setup.

    Thanx
    Christian

  • #2
    Yes Christian, you can precisely emulate the Left-Shift key by bringing up the Keycode Helper (Command-Shift-K) and pressing the key of interest. You will get a key code that you must use to select the correct Keycode event.

    More information in the manual at pages 14 and 42 (the 2.12 manual is available directly from the Help menu).

    Comment


    • #3
      Hello,

      that is not the case. Keycode-Helper reports code-number 56 for both SHIFT-keys and in my personal search in the internet, there is no way to differentiate between left and right function keys with these kind of key codes. There must be some other kind of differentiation, but I have found no way to do it (for instance using an Apple-Script).

      Thank You

      Comment


      • #4
        Hi Christian,

        You are right, sorry I thought I remembered the key codes were different for each side of the keyboard.

        But then, how are the games polling for active keys on the keyboard?
        They may be accessing the raw HID device (keyboards are also HID devices).
        That would mean that it is not possible to use Keycode or Key Combo events to control these games.

        Have you ever tried ControllerMate?
        This application is very powerful, and might be able to help you solve this problem:



        Best,
        Cam

        Comment


        • #5
          Hello,

          i will try it out und report later.

          Christian

          Comment


          • #6
            Okay, the HID-Usage for "LEFT-Shift" is "Page 7 keyboard usage 0xE1 ", right?
            To use this from OSCulator it would be necessary to create a virtual "HID-Keyboard", right?

            Please correct me, if i am totally wrong.

            Christian

            Comment


            • #7
              Yes, i believe that would be one possible solution, albeit heavyweight...
              I could also investigate on the Mac OS X framework used to synthesize keyboard events to see if they provide a programmatic way of sending a Left Shift key event.

              Comment

              Working...
              X