Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Detect Arrow Keys Without Qualifiers?

    Scheduled Pinned Locked Moved SDK Help
    6 Posts 0 Posters 391 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.
    • H Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 04/02/2012 at 12:20, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   13 
      Platform:   Windows  ;   Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      I'm trying to detect arrow keys like this:

        
      Bool SceneHook::KeyboardInput(BaseSceneHook *node, BaseDocument *doc, BaseDraw *bd, EditorWindow *win, const BaseContainer &msg;)   
      {   
           LONG key = msg.GetData(BFM_INPUT_CHANNEL).GetLong();   
           GePrint("key: " + LongToString(key));   
           return FALSE;   
      }   
      

      An arrow key ID is only returned when it is used with Control, Option/Alt or Command.

      Is it possible to use a SceneHook to detect arrow keys without qualifiers? Also, is it possible to detect Shift + arrow key combinations?

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 05/02/2012 at 00:19, xxxxxxxx wrote:

        Haven't tried it, yet, but for combinations of qualifiers it looks as if BFM_INPUT_QUALIFIER delivers a mask, containing the bits of all simultaneously pressed qualifiers.

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 05/02/2012 at 03:39, xxxxxxxx wrote:

          Thanks for the suggestion.

          I'm getting the qualifiers, the problem is that no arrow key IDs are returned when they're used on their own or with the Shift key.

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 08/02/2012 at 16:33, xxxxxxxx wrote:

            Can support please tell me whether this is possible before I pursue my own platform-specific implementations?

            1 Reply Last reply Reply Quote 0
            • H Offline
              Helper
              last edited by

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 09/02/2012 at 02:02, xxxxxxxx wrote:

              The problem is that the arrow and shift-arrow keys are already taken for viewport nudging, most likely by another scene hook. I don't think this is possible to override.

              cheers,
              Matthias

              1 Reply Last reply Reply Quote 0
              • H Offline
                Helper
                last edited by

                THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                On 09/02/2012 at 03:49, xxxxxxxx wrote:

                Okay, thanks for the clarification.

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