Hi @Fangh,
It seems you have import VIU 1.13.4.
You can try following methods to see if this resolves your problem.
public ViveRoleProperty role = ViveRoleProperty.New();
if (ViveInput.GetPress(role, ControllerButton.Trigger))
{
//
}
if (ViveInput.GetPress(role, ControllerButton.Grip))
{
//
}
if (ViveInput.GetPress(role, ControllerButton.Pad))
{
//
}
For controller name, you can try below code.
var deviceState = VRModule.GetCurrentDeviceState(role.GetDeviceIndex());
deviceState.modelNumber or deviceState.renderModelName
Let me know if you have further questions.