Keyhit library update
#9
(02-10-2023, 06:28 AM)johannhowitzer Wrote: 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.

Thanks for the explanation. I'd be very interested to see a (simple) example of this working. 
You're right, it does sound like a lot of work, and I can't see it making any of my current progs simpler, but maybe there's something in there that will help in future ones... I'm still very much a novice, but I'm always keen to learn new ways of doing things!
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, W.A.) Big Grin
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



Users browsing this thread: 5 Guest(s)