mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Add love.window.getPointer, returns a SDL_Window* as lightuserdata.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user