Add love.window.getPointer, returns a SDL_Window* as lightuserdata.

This commit is contained in:
Sasha Szpakowski
2024-01-08 21:09:40 -04:00
parent ecd9b007aa
commit 6feedc8222
4 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -1405,7 +1405,7 @@ void Window::fromPixels(double px, double py, double &wx, double &wy) const
wy = py / scale;
}
const void *Window::getHandle() const
void *Window::getHandle() const
{
return window;
}
+1 -1
View File
@@ -123,7 +123,7 @@ public:
double fromPixels(double x) const override;
void fromPixels(double px, double py, double &wx, double &wy) const override;
const void *getHandle() const override;
void *getHandle() const override;
bool showMessageBox(const std::string &title, const std::string &message, MessageBoxType type, bool attachtowindow) override;
int showMessageBox(const MessageBoxData &data) override;