|
Re: inchar with more than one character and inchar_active
[Re: Lukas]
#384954
10/10/11 18:09
10/10/11 18:09
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
Doesn't inchar already imply that it only returns one character? Why should that be changed when there is inkey for the purpose of capturing longer input?
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
Re: inchar with more than one character and inchar_active
[Re: jcl]
#385081
10/12/11 13:54
10/12/11 13:54
|
Joined: May 2007
Posts: 2,043 Germany
Lukas
OP
Programmer
|
OP
Programmer
Joined: May 2007
Posts: 2,043
Germany
|
Ok, I guess I'll have to use inkey then, if I want to be able to type in "^^"... Btw, jcl, now that I used the Watched Topic feature and get an email with your original post, I realize how often you edit your posts. You originally said: Yes, that's also what I don't understand. Using inkey is the obvious solution and should be done in 5 minutes with minimal effort. Other than inchar, inkey doesn't return after each character, but pauses the function till it's finished. So it requires an other function that always keeps running. Also, I won't be able to handle backspaces etc. so easily, especially if I want to be able to block them. So I kinda disagree on the 5 minutes...
|
|
|
|