I understand this can seem a bit weird. So I'll give more details.
Is it possible for my computer to interact with some kind of "coin collector" ( just like the kind that's used in a vending machine ) ?
Basically I'd like to be able to implement the following methods
public void onCoinInserted( Coin coin ){
if( coin.value == 10 )
unlockGame();...
Is there some USB hardware I could plug to my PC that can do this? Any help would be appreciated, it's very hard to find those devices.