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
    • Recent
    • Tags
    • Users
    • Register
    • Login

    Tool Plugin

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 300 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 22/07/2005 at 23:30, xxxxxxxx wrote:

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

      ---------
      Hello ...

      Can I use mouse and kyeboard combination in Tool Plugin ...
      If so .. how can I do it?

      I mean
      I want an action when I freely click the mouse ...
      ... and then I want anothe action when I click the mouse pressing Alt key ...
      .... pressing Ctrl ... I want another action ...

      I use the QATL ... but it's not OK ...
      When I use Alt + 'Q' (eg) ... I can catch it ...

      But when I only press Alt ... I think it's not calling the KeyboardInput function ...
      So do me a favor ...

      Wishing all all the best ...
      ZawMinTun

      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 27/07/2005 at 07:03, xxxxxxxx wrote:

        I don't think there's a way to detect when the user presses the modifier Alt. However, you can always get the current status of the modifiers with:

            
            
            BaseContainer state;  
            GetInputState(BFM_INPUT_MOUSE, BFM_INPUT_MOUSELEFT, state);  
            LONG qual = state.GetLong([CODE]BFM_INPUT_QUALIFIER);  
            Bool alt = qual & QALT;
        

        [/CODE]

        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 28/07/2005 at 20:55, xxxxxxxx wrote:

          So good to hear from you Mikael ...
          It may help my problem ...

          Thank you ... I really do ...

          With all my respects ...
          ZawMinTun

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