Is there a lightweight open source library that would allow me to get PS3 controller input and use it in a program that I am writing in java? The alternatives I were looking at were SDL and OIS but they aren't coded in Java so I would have to write a Java wrapper.

edit: that i could use on both osx and windows