コード例 #1
0
            /// <summary>
            /// Function to define a new button for the device.
            /// </summary>
            /// <param name="name">Name of the button to define.</param>
            /// <exception cref="System.ArgumentNullException">Thrown when the <paramref name="name"/> parameter is NULL (Nothing in VB.Net).</exception>
            /// <exception cref="System.ArgumentException">Thrown when the name parameter is empty.
            /// <para>-or-</para>
            /// <para>Thrown when the name already exists in the list.</para>
            /// </exception>
            protected void DefineButton(string name)
            {
                GorgonDebug.AssertParamString(name, "name");

                AddItem(new JoystickButtonState(name, false));
            }