mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Made some float/int/unsigned char conversions explicit, fixed ParticleSystem:getColors, fixed love.mouse.isDown with x1 and x2 buttons
This commit is contained in:
@@ -42,10 +42,10 @@ public:
|
||||
BUTTON_LEFT,
|
||||
BUTTON_MIDDLE,
|
||||
BUTTON_RIGHT,
|
||||
BUTTON_WHEELUP,
|
||||
BUTTON_WHEELDOWN,
|
||||
BUTTON_X1,
|
||||
BUTTON_X2,
|
||||
BUTTON_WHEELUP,
|
||||
BUTTON_WHEELDOWN,
|
||||
BUTTON_MAX_ENUM
|
||||
};
|
||||
|
||||
|
||||
@@ -130,7 +130,7 @@ void Mouse::setVisible(bool visible)
|
||||
|
||||
bool Mouse::isDown(Button *buttonlist) const
|
||||
{
|
||||
Uint8 buttonstate = SDL_GetMouseState(0, 0);
|
||||
Uint32 buttonstate = SDL_GetMouseState(0, 0);
|
||||
|
||||
for (Button button = *buttonlist; button != BUTTON_MAX_ENUM; button = *(++buttonlist))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user