Use mouse wheel for selecting piece in Edit Position mode (XB)
authorH.G.Muller <hgm@hgm-xboard.(none)>
Fri, 26 Feb 2016 22:35:39 +0000 (23:35 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Fri, 26 Feb 2016 22:35:39 +0000 (23:35 +0100)
commit24eec7ef0db2c98df79453e377a72cefe12b7569
tree9b4d1f345e7ead60703525631250e16df1b161d6
parenta2f3d790becbea6cd93ec51add89f2251a90bba4
Use mouse wheel for selecting piece in Edit Position mode (XB)

Rather than calling ForwardEvent() and BackwardEvent() directly from the
mouse-wheel handler, we now call a backend routine Wheel(), which gets
the pointer coordinates passed to it (which we must remember during
mouse move events). This then calls the Forward/Backward event, except
in EditPosition mode, where it changes the piece in the square below the
pointer.
backend.c
dialogs.c
frontend.h