View Single Post
Old 24 September 2018, 16:07   #29
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,510
Quote:
Originally Posted by ross View Post
You have opted for 'interior' CIA wait, I've an 'exterior' wait (I start a timer and differ the handshake so I dont waste cycles on fast machine).
True. I'm optimizing my games always for the slowest supported architecture, so I didn't think it was worth it. Especially when key presses are rather rare within the game (usually just ESC to quit it).

Interestingly, the "interior handshake" seems to be the prefered method by OS drivers. AmigaOS keyboard.device and NetBSD /dev/kbd do it the same.

Quote:
And the request for a Disable() when you've to read a key is a bit to much, I prefer a semaphore
This was rather a note to myself than a request. My games usually runs in a VERTB-routine, so I am always safe to call getkey.

Quote:
One day i'll rewrite a routine that sum-up all this goodies..
LOL
Please do!
phx is offline  
 
Page generated in 0.04462 seconds with 11 queries