Reported in version: HG 1.2 Reported for operating system, platform: FreeBSD, All
Comments on the original bug report:
On 2013-09-06 20:36:41 +0000, wrote:
Created attachment 1322
A patch to read() multiple times
Some joysticks with high sampling rate need to be read() more fast,
otherwise it delay user inputs due to internal queue.
Especially, an app that issues SDL_PollEvent() not so frequent, such as:
while ( ! done ) {
usleep(10*1000); // <-- some delay
while ( SDL_PollEvent(&event) ) {
:
}
}
It is solved by read()-ing multiple times at once.
(I think this is safe because of O_NONBLOCK mode)
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Reported in version: HG 1.2
Reported for operating system, platform: FreeBSD, All
Comments on the original bug report:
On 2013-09-06 20:36:41 +0000, wrote:
On 2013-09-07 03:54:44 +0000, Sam Lantinga wrote:
The text was updated successfully, but these errors were encountered: