And maybe we will have overloaded functions some day :P
But anyway,
ButtonDirection
GetButtonDirection
ButtonDirectionPressed
... far too much to type,
and what do you want to say by "direction"?
in C it's getchar() (which we already have)
C also uses cin (analog to cout), getchar, getch, getche(), kbhit(), scanf, fscanf, sscanf, vfscanf, vscanf, vsscanf (stdio.h, conio.h, partially for files)
so I suggest for a substitute to
char Buttonpressed
it could also be something C-like (short and consise)
Code: Select all
char scanchar() or
char scanbtn() or
char btnstate() or
char kbhit() or
char btnhit() or
char btnpressed()
(I know that ANSI C hasn't got this Buttonpressed functionality (Pascal has got it), but there are workarounds using cin and conio- (non-ANSI) kbhit)