Today I played a game which has a mini-game in it, basically it looks like this:
here's a bar:
and a cursor moves back and forth on it:
-|--------=====---------- ( cursor "|" moves in this direction -> ) -----|----=====---------- ----------===|=---------- ----------=====---------| ( when the cursor reaches the end, it goes back <-)
If I hit a key when the cursor is on the specific part of the bar (which I used the "=" sign to represent), I win. Otherwise I lose.
This kind of mini-game is pretty common as I've seen many variant of it in a lot of games, yet I don't know the name of it. Does it have a name? What's the origin of it?
EDIT: There's an answer mentions QTE. Well... I'm aware of that and I don't think this mini-game belongs in that category thus I avoided using that term. Here's the reason for that:
QTEs have time limits, after all it's Quick time event, this kind of mini-game I'm asking about usually doesn't. Well, I've seen variations of it that does count as lose if you didn't hit the key in some amount of time, it's not the main focus of it.
Unlike how QTEs are all about testing player's reflex, this kind of mini-game is all about precision, as seen in many rhythm games. However, it doesn't necessary have any audible cue like rhythm games do, it's all about learning the pattern/speed of the moving cursor then press the key at the right time.
It's not about how quick you can press a key, but when to press the key. Hence I don't think this counts as a QTE.