I am using Dev-C++ 4.9.8.1 with mingw. I am attempting to create a console application that uses a read_console_input function to get mouse events and keyboard events on its virtual dos screen and I want to set a timer(alarm) to perform specifice tasks if there is no activity occuring with the mouse or keyboard. However, there doesn't appear to be any way to set an alarm as SIGALRM is not defined in signals.h under mingw. The application works fine with mouse and keyboard but I need to do things after a specified time if there is no activity. Please help if you know some way to do this . I can provide sample code with just the items I've talked about here if needed.
Thanks,
h_field
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am using Dev-C++ 4.9.8.1 with mingw. I am attempting to create a console application that uses a read_console_input function to get mouse events and keyboard events on its virtual dos screen and I want to set a timer(alarm) to perform specifice tasks if there is no activity occuring with the mouse or keyboard. However, there doesn't appear to be any way to set an alarm as SIGALRM is not defined in signals.h under mingw. The application works fine with mouse and keyboard but I need to do things after a specified time if there is no activity. Please help if you know some way to do this . I can provide sample code with just the items I've talked about here if needed.
Thanks,
h_field