Hi Alex,
this is a timing issue depending on your host hardware and workload.
When checked, the Sensor Chess king's LED is lightened for a while and the emulation has to wait long enough before getting the actual played from-square.
Suggest to increase the emu.wait command in schess lua file (1.5 secs instead of 1 should be enough):
Code:
function interface.is_selected(x, y)
if (machine:outputs():get_value((x - 1) .. "." .. (y - 1)) ~= 0) then
if (math.abs(get_piece_id(x, y)) == 1) then
emu.wait(1.5)
return machine:outputs():get_value((x - 1) .. "." .. (y - 1)) ~= 0
end
return true
end
return false
end
Hope this helps,
Eric