Not sure if it's right but this is what I got so far.

Part of the controller, maybe Hai has something better