@@ -87,6 +87,7 @@ namespace
8787 CString uvctrlid;
8888
8989 bool windowontop = false ;
90+ int unresponsiveness;
9091 HWND activewindow;
9192
9293
@@ -813,6 +814,7 @@ int main(int argc,char *argv[])
813814 threshold = atof (ini.GetValue (" main" , " threshold" , " 1.0" ));
814815 deadzonerange = atof (ini.GetValue (" main" , " deadzonerange" , " 0.2" ));
815816 windowontop = ToBool (ini.GetValue (" main" , " WindowOnTop" , " false" ));
817+ unresponsiveness = std::stoi (ini.GetValue (" main" , " unresponsiveness" , " 10" ));
816818
817819 // xinput prefs
818820 trigger1 = std::stoi (ini.GetValue (" buttons" , " trigger1" , " 999" ));
@@ -857,7 +859,7 @@ int main(int argc,char *argv[])
857859
858860 // Create the window of the application
859861 sf::String appname=" Joy2OpenVR " ;
860- appname += " 0.9b " ;
862+ appname += " 0.10b " ;
861863 sf::RenderWindow window (sf::VideoMode (600 , 780 ), appname, sf::Style::Close);
862864 window.setVerticalSyncEnabled (true );
863865
@@ -993,6 +995,7 @@ int main(int argc,char *argv[])
993995
994996 while (window.isOpen ())
995997 {
998+ Sleep (unresponsiveness);
996999 // Handle events
9971000 sf::Event event;
9981001 while (window.pollEvent (event))
0 commit comments