Exemple #1
0
        /**
         * Fills a TreadmillInfo struct with information about currently connected
         * treadmill
         *
         * NOTE: Not currently implemented
         */
        public static TreadmillInfo GetTreadmillInfo()
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            TreadmillInfoPayload info_payload = InfinadeckInterOp.GetTreadmillInfo();

            return(new TreadmillInfo(info_payload.id, info_payload.model_number, info_payload.dll_version));
        }
        /**
         * Fills a TreadmillInfo struct with information about currently connected
         * treadmill
         *
         * NOTE: Not currently implemented
         */
        public static TreadmillInfo GetTreadmillInfo()
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            TreadmillInfo info_payload;

            InfinadeckInterOp.GetTreadmillInfo(out info_payload);
            return(info_payload);
        }