Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Keyhit library update
#8
That's correct.  I assign the key references to an array, scan through the array on each loop iteration where input is relevant, and update button states in two other arrays - one for whether each button is pressed on this iteration, and one for last iteration.  It sounds like lots of work, but once you set it up, it's actually simpler than other methods at the front end.  It also makes implementing user-defined controls very easy.

I'm at work now, but if you're interested, I can share more when I'm home.
Reply


Messages In This Thread
Keyhit library update - by SMcNeill - 11-23-2022, 01:16 PM
RE: Keyhit library update - by TempodiBasic - 02-08-2023, 10:07 AM
RE: Keyhit library update - by PhilOfPerth - 02-08-2023, 11:30 PM
RE: Keyhit library update - by SMcNeill - 02-08-2023, 11:51 PM
RE: Keyhit library update - by PhilOfPerth - 02-09-2023, 12:35 AM
RE: Keyhit library update - by johannhowitzer - 02-10-2023, 04:17 AM
RE: Keyhit library update - by PhilOfPerth - 02-10-2023, 05:56 AM
RE: Keyhit library update - by johannhowitzer - 02-10-2023, 06:28 AM
RE: Keyhit library update - by PhilOfPerth - 02-10-2023, 06:51 AM
RE: Keyhit library update - by johannhowitzer - 02-10-2023, 01:39 PM
RE: Keyhit library update - by SMcNeill - 02-10-2023, 02:16 PM
RE: Keyhit library update - by SpriggsySpriggs - 02-10-2023, 03:21 PM
RE: Keyhit library update - by johannhowitzer - 02-10-2023, 08:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Keyhit to Inkey Conversion Project Pete 7 595 01-11-2026, 01:26 AM
Last Post: Pete
  QB UI Library aadityap0901 6 1,186 08-02-2025, 05:13 PM
Last Post: aadityap0901
  new approach to base conversion system and math library Dragoncat 2 578 07-16-2025, 10:19 PM
Last Post: Dragoncat
  No longer the DADDY! But....GDK_GL/GDK2 Update/Preview Unseen Machine 3 766 07-08-2025, 03:31 PM
Last Post: commandvom
  Everything Date Library in progress SMcNeill 2 719 05-14-2025, 08:36 PM
Last Post: SMcNeill

Forum Jump:


Users browsing this thread: 2 Guest(s)