Merge pull request #26 from santigimeno/translate_coordinates

Add TranslateCoordinates core request
This commit is contained in:
Andrey Sidorov 2013-03-27 05:37:52 -07:00
commit 05eba309fe

View file

@ -481,6 +481,21 @@ module.exports = {
};
}
],
TranslateCoordinates: [
function(srcWid, dstWid, srcX, srcY) {
return [ 'CxSLLSS', [ 40, 4, srcWid, dstWid, srcX, srcY ] ];
},
function(buf)
{
var res = buf.unpack('LSS');
ext = {};
ext.child = res[0];
ext.destX = res[1];
ext.destY = res[2];
return ext;
}
],
SetInputFocus: [