using System;
using System.Collections.Generic;
using System.Text;

namespace Salamax
{
  public class CodeNotifier : IButtonNotifier
  {
    public event EventHandler<EventArgs> ButtonStateChanged;
    public bool A { get; set; }
    public bool B { get; set; }
    public bool X { get; set; }
    public bool Y { get; set; }
    public bool Start { get; set; }
    public bool Back { get; set; }
    public bool Guide { get; set; }
    public bool Up { get; set; }
    public bool Down { get; set; }
    public bool Left { get; set; }
    public bool Right { get; set; }
    public bool LeftButton { get; set; }
    public bool RightButton { get; set; }
    public byte LeftTrigger { get; set; }
    public byte RightTrigger { get; set; }
    public short LeftX { get; set; }
    public short LeftY { get; set; }
    public short RightX { get; set; }
    public short RightY { get; set; }

    public void RefreshStatus()
    {
      if (ButtonStateChanged != null)
        ButtonStateChanged(this, EventArgs.Empty);
    }
  }
}
