aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index b0534f1dd1f..1a7821acb37 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -1258,6 +1258,27 @@ stop_polling ()
1258 } 1258 }
1259#endif 1259#endif
1260} 1260}
1261
1262/* Set the value of poll_suppress_count to COUNT
1263 and start or stop polling accordingly. */
1264
1265void
1266set_poll_suppress_count (count)
1267 int count;
1268{
1269#ifdef POLL_FOR_INPUT
1270 if (count == 0 && poll_suppress_count != 0)
1271 {
1272 poll_suppress_count = 1;
1273 start_polling ();
1274 }
1275 else if (count != 0 && poll_suppress_count == 0)
1276 {
1277 stop_polling ();
1278 }
1279 poll_suppress_count = count;
1280#endif
1281}
1261 1282
1262/* Applying the control modifier to CHARACTER. */ 1283/* Applying the control modifier to CHARACTER. */
1263int 1284int