private void ExecuteRemapAction(Script script, MappingAction action, DualShockState state)
        {
            if (state == null)
            {
                state = new DualShockState();
            }

            // Try to set property using Reflection
            bool didSetProperty = false;

            try
            {
                SetValue(state, action.Property, action.Value);
                didSetProperty = true;
            }
            catch (Exception ex) { Debug.WriteLine(ex.StackTrace); }

            if (didSetProperty)
            {
                script.StopMacro();
                script.SetButtons(state);
            }
        }