Thanks, so there is no easier way than the one sketched in the first post (analyzing the txids of vin and trying to determine which outputs of the txids where used for the transaction)?
Edit: I just found out that the vout parameter in the vin txids is a reference to which output of the txid was used, so the above way works easy enough for me...