da03 commited on
Commit
8ac6ee5
·
1 Parent(s): 64a144d
Files changed (1) hide show
  1. worker.py +9 -2
worker.py CHANGED
@@ -448,12 +448,19 @@ class GPUWorker:
448
  latest_input = current_input
449
 
450
  # Check if this is an interesting event
451
- is_interesting = (current_input.get("is_left_click") or
 
 
452
  current_input.get("is_right_click") or
453
  (current_input.get("keys_down") and len(current_input.get("keys_down")) > 0) or
454
  (current_input.get("keys_up") and len(current_input.get("keys_up")) > 0) or
455
  current_input.get("wheel_delta_x", 0) != 0 or
456
- current_input.get("wheel_delta_y", 0) != 0)
 
 
 
 
 
457
 
458
  # Process immediately if interesting
459
  if is_interesting:
 
448
  latest_input = current_input
449
 
450
  # Check if this is an interesting event
451
+ CONSIDER_SCROLL = False # TODO: consider scroll in future versions
452
+ if CONSIDER_SCROLL:
453
+ is_interesting = (current_input.get("is_left_click") or
454
  current_input.get("is_right_click") or
455
  (current_input.get("keys_down") and len(current_input.get("keys_down")) > 0) or
456
  (current_input.get("keys_up") and len(current_input.get("keys_up")) > 0) or
457
  current_input.get("wheel_delta_x", 0) != 0 or
458
+ current_input.get("wheel_delta_y", 0) != 0)
459
+ else:
460
+ is_interesting = (current_input.get("is_left_click") or
461
+ current_input.get("is_right_click") or
462
+ (current_input.get("keys_down") and len(current_input.get("keys_down")) > 0) or
463
+ (current_input.get("keys_up") and len(current_input.get("keys_up")) > 0))
464
 
465
  # Process immediately if interesting
466
  if is_interesting: