示例#1
0
        public static int GetPadPressedInputMask(this GamepadInput gamepad, LaneInfo laneInfo)
        {
            int inputMask = 0;

            foreach (Note.DrumPad pad in System.Enum.GetValues(typeof(Note.DrumPad)))
            {
                if (gamepad.GetPadPressedInput(pad, laneInfo))
                {
                    inputMask |= 1 << (int)pad;
                }
            }

            return(inputMask);
        }