code: def readACTIONRECORDs(self):
          
          out = []
          while 1:
              action = self.readACTIONRECORD()
              if action:
                  out.append(action)
              else:
                  break
          return out
docs: Read zero or more button records (zero-terminated)