aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 8efb3507c0c..6534e45e022 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -1335,6 +1335,18 @@ start_polling ()
1335#endif 1335#endif
1336} 1336}
1337 1337
1338/* Nonzero if we are using polling to handle input asynchronously. */
1339
1340int
1341input_polling_used ()
1342{
1343#ifdef POLL_FOR_INPUT
1344 return read_socket_hook && !interrupt_input;
1345#else
1346 return 0;
1347#endif
1348}
1349
1338/* Turn off polling. */ 1350/* Turn off polling. */
1339 1351
1340stop_polling () 1352stop_polling ()