RE: Exotica X keyboard events

new topic     » goto parent     » topic index » view thread      » older message » newer message

I see what yer getting at. You are right. get_kb_buffer_data() only 
returns T or F.

The keyboard input system in exotica is something to be desired, I'm 
afraid. No matter how you slice it, you can only poll for a specific 
keypress, in either kb mode.

I have been planning to make a routine to assist with this, but it's 
still not a very good alternative.

The only way I can think of to get the entire buffer, is to check for 
each allowable key, in all pending events.

The best idea, would be to disable DX kb input, and use windows kb event 
handling.


Chris


Lewis Townsend wrote:
> Hello Chris,
> 
> Thanks for the reply.
> 
> > >From what I understand, you are using buffered mode,
> 
> Yes
> 
> >Knowing that, you can make a loop to retrieve the actual events, using
> >get_kb_buffer_data().
> 
> Thats the trouble, according to the Documentation that I have, it 
> doesn't 
> work that way. get_kb_buffer_data() has 2 parameters, event and key. 
> event 
> is the element of the buffer; ok there. the "key" is the key press you 
> are 
> looking for, so you have to know what you are looking for, you just cant 
> ask 
> it to return what it has. The return value is just true or false: true 
> if 
> you guessed the right key, false if that key isn't in that event. Again, 
> 
> this is just according to the docs and I assume its correct. ?
> 
> I guess I could experiment with the function and do stuff like pass 0 or 
> -1 
> to "key" and see if get_kb_buffer_data() will return a key code rather 
> than 
> just a true 1 or false 0.
> 
> later,
> Lewis Townsend
> 
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu