Closed RechieKho closed 6 months ago
So, on line 1186,
1186
boolean getRightAnalog (byte& x, byte& y) { x = rx; y = ry; return analogSticksValid; }
I believe you forgot to mark const.
const
Since the getLeftAnalog marked const (on line 1165),
getLeftAnalog
1165
boolean getLeftAnalog (byte& x, byte& y) const { x = lx; y = ly; return analogSticksValid; }
So I believe it is a bug.
Good catch! Doesn't cause any issue but it's still an oversight, I will fix it (one day).
Hopefully that one day is today 👌
Well yes, with a PR everything is easier :). Thanks a lot!
So, on line
1186
,I believe you forgot to mark
const
.Since the
getLeftAnalog
markedconst
(on line1165
),So I believe it is a bug.