Python Forum
Using Metulburr's state machine, having a lag issue with events
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using Metulburr's state machine, having a lag issue with events
#5
I have changed the code and removed the get_pressed(). It works, however now the cursor only moves on each keystroke. It does not scroll while the key is held down, which to my understanding requires a boolean value to be used, like...

while left:
    self.moveLeft()
any way to fix this while retaining the correct form?

Another thing was that my get_event() did not have dt as a param like yours did in the example. I didn't see that in the state machine.
Reply


Messages In This Thread
RE: Using Metulburr's state machine, having a lag issue with events - by cjoe1993 - Dec-09-2020, 08:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  wait for the first of these events Skaperen 4 2,080 Mar-07-2022, 08:46 PM
Last Post: Gribouillis
  How to get continuous movement whilst using State Machine cjoe1993 2 1,897 Dec-10-2020, 06:36 AM
Last Post: cjoe1993
  State graph Kaluss 1 2,322 Mar-18-2019, 05:29 PM
Last Post: nilamo
  Simulating events using Hawkes akshit2291 1 2,195 Sep-25-2018, 04:17 AM
Last Post: Larz60+
  win32com Events not catching dageci 0 3,812 Aug-06-2018, 03:18 PM
Last Post: dageci

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020