Figured it out! Just have to assign a parameter to the button, and check to see if the parameter associated with the button is pressed in OnParamChange(). I was dumb and didn't realize you can stack if statements within switch statements, whoops. XD
The implementation, if anyone else is wondering:
Code:
// Set up IContactControl with parameter
GetParam(kPad)->InitBool("Pad", 0);
pGraphics->AttachControl(new IContactControl(this, xpos, ypos, kPad, &bitmap));
Then setting up what to do in OnParamChange();
Code:
// Get whether pad is held down or not
void Example::OnParamChange(int paramIdx) {
IMutexLock lock(this);
switch (paramIdx) {
case kPad:
if (GetParam(kPad)->Value()) {
// Pad is held down
// Do thing
}
else {
// Pad is released
// Do other thing
}
// Other parameters...
}
}