benanders / LuaIDE

An in-game IDE for ComputerCraft
MIT License
43 stars 9 forks source link

Clicking returns different coordinate when ran in a windows below 1 Y level #48

Closed logsys11 closed 10 years ago

logsys11 commented 10 years ago

Like in my LogOS or OneOS(can't download it so I can't test it), when LuaIDE is ran in the window with a Y level below, it assumes that you are clicking in the Y below and not the current

benanders commented 10 years ago

One of the problems with the window API. Dan modified it so any drawing to the terminal gets drawn inside the window using local window coordinates, but all mouse events utilise global coordinates, not specific to the window. This is because the events aren't handled by the window, but by the superior executing application (in this case the shell program). This is a bug with the shell program - something I can't fix.