rndbit
Member
|
Kb.b/Kb.bp/Kb.br for func keys
I am in situation where integrating 3rd party library requires forwarding user input to it. Library would like to receive windows key codes. I noticed that KB_FUNC are same as windows key codes, so that would work out perfectly nice, except there are problem: impossible to check if func key was pressed or released in current frame, only if it is on. KB_BUTTON could be used for the matter, but here comes on an over head of looping through all possible values of buttons to check their states, convert to windows key codes and pass to the library.
So i would like to propose feature:
Overloads of Kb.b, Kb.bp, Kb.br that would accept KB_FUNC as input.
Kb.eat() overload for KB_FUNC.
(This post was last modified: 03-13-2011 01:30 PM by rndbit.)
|
|
03-13-2011 01:10 PM |
|
Salival
Member
|
RE: Kb.b/Kb.bp/Kb.br for func keys
Requested feature is needed and functions that are already in there are not enough in some cases. As in this case if an key was pressed or released in current frame.
(This post was last modified: 03-14-2011 09:25 AM by Salival.)
|
|
03-14-2011 09:24 AM |
|
Salival
Member
|
RE: Kb.b/Kb.bp/Kb.br for func keys
Anything Esenthel?
|
|
03-15-2011 09:31 PM |
|
Esenthel
Administrator
|
RE: Kb.b/Kb.bp/Kb.br for func keys
I suggest playing with bp/br/b
as for 'eat' you have 'nextBufferedFunc'
|
|
03-15-2011 09:49 PM |
|