Subversion Repositories group.electronics

Rev

Rev 178 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 178 Rev 180
Line 22... Line 22...
22
                if (!match) {
22
                if (!match) {
23
                    Console.WriteLine("Driver and Dll version to not match\n");
23
                    Console.WriteLine("Driver and Dll version to not match\n");
24
                    return;
24
                    return;
25
                }
25
                }
26
 
26
 
27
                uint id = 0;
27
                uint id = 1;
28
                VjdStat status = vjs.GetVJDStatus(id);
28
                VjdStat status = vjs.GetVJDStatus(id);
29
 
29
 
30
                if ((status == VjdStat.VJD_STAT_OWN) || ((status == VjdStat.VJD_STAT_FREE) && (!vjs.AcquireVJD(id)))) {
30
                if ((status == VjdStat.VJD_STAT_OWN) || ((status == VjdStat.VJD_STAT_FREE) && (!vjs.AcquireVJD(id)))) {
31
                    Console.WriteLine("Failed to acquire vJoy id {0}", id);
31
                    Console.WriteLine("Failed to acquire vJoy id {0}", id);
32
                    return;
32
                    return;