trying to write a plugin for a third party VR device

Hello everyone, I am trying to write a plugin for UE4 that will use a third party VR device. What are the steps needed? Anyone have any tutorial I can read? I am compiling the UE4 source code right now.

Check out the simpleHMD plugin and use that as a base.