I am a beginner in Ada programming. I am trying to make a "2048" game using Ada. I did "2048" in C++, and I used "kbhit()" to detect that is there any keyboard button pressed. I want to know that is there any similar function available like "kbhit()" in Ada, or how to write a function to detect is there any keyboard button pressed, or should I just use the function by interface in C++.
How to detect any keyboard button pressed in Ada language
424 views Asked by waterbear37 At
1
Yes, you can use any of several overloaded versions of
Ada.Text_IO.Get_Immediate
. The declarations are (copied from the 2012 edition of the Ada standard):