コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CtrlNum != 0)
            {
                hash ^= CtrlNum.GetHashCode();
            }
            if (pos_ != null)
            {
                hash ^= Pos.GetHashCode();
            }
            if (rot_ != null)
            {
                hash ^= Rot.GetHashCode();
            }
            if (joy_ != null)
            {
                hash ^= Joy.GetHashCode();
            }
            if (Trigger != 0F)
            {
                hash ^= Trigger.GetHashCode();
            }
            if (Buttons != 0)
            {
                hash ^= Buttons.GetHashCode();
            }
            return(hash);
        }