Fixed an issue regarding button's matrix.

[Issue]
  Mouse click does not work.

[Cause]
  Button record's matrix is ignored.

[Fix]
  Took the button record's matrix into account.
Merge pull request #78 from kuu/master

Fixed an issue regarding button's matrix.