C/C++ are fairly low level languages. Although in theory you could program anything in C++, it doesn't always make sense.
Whenever performance is important or you need to perform low level tasks (Memory or hardware related stuff) it makes sense to work with C/C++.
If you work with huge datasets or scraping, parsing etc. C/C++ requires a lot more work to make it work than let's say Python.
For your project of mapping inputs, you could very well code this in C++. If there isn't an API or wrapper available for the stuff you want to write, you'll almost certainly want to write this in C++ to minimize latency.