
13 Sep
2007
13 Sep
'07
10:03 a.m.
Hello, 2007/9/11, Christopher Kohlhoff <chris@kohlhoff.com>:
Asio is not really intended for those use cases as, in general, user interface events follow quite a different model to things like files and sockets. [...]
Where is that difference?
From the users point of view it should be quite similar: from the tutorials: io_service io;
deadline_timer t(io, boost::posix_time::seconds(5)); t.async_wait(print); from my phantasy: joystick joy(io, "stickname"); joy.async_axis( boost::bind(handle_axis, joy, placeholders::error )); joy.async_button( boost::bind(handle_button, joy, placeholders::joystick::button_id, placeholders::error )); ... kind regards Andreas Pokorny