module.exports = function (self) {
  self.setVariableDefinitions([
    {
      variableId: 'last_button',
      name: 'Last button (id / name)',
    },
    {
      variableId: 'last_event',
      name: 'Last event (down/up)',
    },
    {
      variableId: 'last_button_id',
      name: 'Last button id (1–6)',
    },
    // Per-button state, updated as simple strings: 'pressed' / 'released'
    {
      variableId: 'button_1_state',
      name: 'GO state',
    },
    {
      variableId: 'button_2_state',
      name: 'STOP state',
    },
    {
      variableId: 'button_3_state',
      name: 'LAST state',
    },
    {
      variableId: 'button_4_state',
      name: 'NEXT state',
    },
    {
      variableId: 'button_5_state',
      name: 'LOAD state',
    },
    {
      variableId: 'button_6_state',
      name: 'PAUSE state',
    },
  ])
}

