Beispiel #1
0
        ////////////////////////////////////////////////////////////////////////
        // Public Methods
        ////////////////////////////////////////////////////////////////////////

        /// <summary>
        /// Gets the associated mouse button that is mapped to the specified
        /// button id.
        /// </summary>
        ///
        /// <param name="buttonId">
        /// The id of the button to retrieve the associated mouse button for.
        /// </param>
        ///
        /// <returns>
        /// The mouse button mapped to the specified button id.
        /// </returns>
        public ZMouseButton GetButtonMapping(int buttonId)
        {
            ZMouseButton mouseButton = ZMouseButton.Unknown;

            ZPlugin.LogOnError(ZPlugin.GetMouseEmulationButtonMapping(
                                   this._context.NativePtr, buttonId, out mouseButton),
                               "GetMouseEmulationButtonMapping");

            return(mouseButton);
        }
Beispiel #2
0
 /// <summary>
 /// Maps the specified integer button id to the specified mouse button.
 /// </summary>
 ///
 /// <param name="buttonId">
 /// The integer button id.
 /// </param>
 /// <param name="mouseButton">
 /// The mouse button to be mapped to.
 /// </param>
 public void SetButtonMapping(int buttonId, ZMouseButton mouseButton)
 {
     ZPlugin.LogOnError(ZPlugin.SetMouseEmulationButtonMapping(
                            this._context.NativePtr, buttonId, mouseButton),
                        "SetMouseEmulationButtonMapping");
 }