I'm currently using a function to stop inkey when I hit the left mouse button.

However, this does not properly store the string as it would if I hit enter or tab.

For example, if I were to type "ggg" and then end this prematurely:

str_cpy(gonline_uname," ");
result = inkey(gonline_uname); //- enter online name

The resulting string would be "ggg____________"

Whereas the underline is actual spaces(this forum wont let me display spaces there??). However, if I hit enter instead, it would be:

"ggg"

This would be fine if I could find a way to know how to trunc the spaces, but I do not. Could we have inkey_active = 0; act the same way as if we ended the inkey operation normally? Thanks.


Check out Silas. www.kartsilas.com

Hear my band Finding Fire - www.myspace.com/findingfire

Daily dev updates - http://kartsilas.blogspot.com/