Added extra event getter function

Hi Oscar,

This pull request is needed to expose a function to be able to retrieve the last triggered event from the library.