Exemplo n.º 1
0
        ///////////////////////////////////////////////////////////////////////
        private void Test_GetDeviceOrientation()
        {
            bool            tiltSupported = false;
            WintabAxisArray axisArray     = CWintabInfo.GetDeviceOrientation(out tiltSupported);

            Console.WriteLine("Device orientation:\n");
            Console.WriteLine("\ttilt supported for current tablet: " + (tiltSupported ? "YES\n" : "NO\n"));

            if (tiltSupported)
            {
                for (int idx = 0; idx < axisArray.array.Length; idx++)
                {
                    Console.WriteLine("\t[" + idx + "] axMin, axMax, axResolution, axUnits: " +
                                      axisArray.array[idx].axMin + "," +
                                      axisArray.array[idx].axMax + "," +
                                      axisArray.array[idx].axResolution + "," +
                                      axisArray.array[idx].axUnits + "\n");
                }
            }
        }
Exemplo n.º 2
0
        ///////////////////////////////////////////////////////////////////////
        private void Test_GetDeviceRotation()
        {
            bool            rotationSupported = false;
            WintabAxisArray axisArray         = CWintabInfo.GetDeviceRotation(out rotationSupported);

            TraceMsg("Device rotation:\n");
            TraceMsg("\trotation supported for current tablet: " + (rotationSupported ? "YES\n" : "NO\n"));

            if (rotationSupported)
            {
                for (int idx = 0; idx < axisArray.array.Length; idx++)
                {
                    TraceMsg("\t[" + idx + "] axMin, axMax, axResolution, axUnits: " +
                             axisArray.array[idx].axMin + "," +
                             axisArray.array[idx].axMax + "," +
                             axisArray.array[idx].axResolution + "," +
                             axisArray.array[idx].axUnits + "\n");
                }
            }
        }
Exemplo n.º 3
0
 private void Test_GetDeviceOrientation()
 {
     bool            tiltSupported = false;
     WintabAxisArray axisArray     = CWintabInfo.GetDeviceOrientation(out tiltSupported);
 }