OSDN Git Service

123
[psychlops/cpp.git] / win32gl / test / compilenew.cpp
index 814ba72..c1ae204 100644 (file)
@@ -22,8 +22,7 @@ void psychlops_main() {
        Psychlops::Ellipse rect(100,100);\r
        rect.fill = Color::red;\r
 \r
-\r
-       data_bits[0] = 1 + 4 + 8; // choose bit\r
+       Devices::GenericParallelPort trigger("USB_PARALLEL", 1+8);\r
 \r
        int t=0;\r
 \r
@@ -34,10 +33,10 @@ void psychlops_main() {
                //if(t%100 == 0)\r
                //      rs = CreateProcess("C:\\Windows\\System32\\print.exe",(LPTSTR)" /D:LPT1 D:\\Users\\hskwk\\Desktop\\zzz.txt",NULL,NULL,FALSE,NORMAL_PRIORITY_CLASS,NULL,NULL,&si,&pi);\r
 \r
+               if(t%120==0) trigger.trigger();\r
+\r
                Display::flip(); // Flip frame buffers\r
        }\r
-\r
-       DeleteDC(hdc);\r
 }\r
 ///- Stimulus drawing function\r
 \r