Usually the university takes half of any funds, faculty takes half, and whatever is left over is split between the associated academics.
You were lucky, as most university contracts clearly state they own all associated IP created while working on campus. They could have legally given you $0, and end of employment notice. These things can get messy fast. =3
> These things can get messy fast.
Yep. I was on a fixed term contract, which had expired, even though I was still working on the project well after its expiration. It would have been interesting to argue that any IP assignment expired with the contract. As you said: messy. As I judged: not worth it.