SDL and SDL_newlib:

- Fixed mouse button handling events. 
- Fixed Makefile
- Delete compile.sh file
 

git-svn-id: svn://kolibrios.org@8648 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
turbocat
2021-03-25 19:14:30 +00:00
parent 4ab1cbe4b1
commit df681ee6ff
4 changed files with 18 additions and 26 deletions

View File

@@ -225,16 +225,16 @@ void MenuetOS_PumpEvents(_THIS)
if ((__tmp^oldmousestate)&1) {
if(__tmp&1)
{
SDL_PrivateMouseButton(SDL_PRESSED,SDL_BUTTON_LMASK,0,0);
SDL_PrivateMouseButton(SDL_PRESSED,SDL_BUTTON_LEFT,0,0);
} else {
SDL_PrivateMouseButton(SDL_RELEASED,SDL_BUTTON_LMASK,0,0);
SDL_PrivateMouseButton(SDL_RELEASED,SDL_BUTTON_LEFT,0,0);
} }
if ((__tmp^oldmousestate)&2) {
if(__tmp&2)
{
SDL_PrivateMouseButton(SDL_PRESSED,SDL_BUTTON_RMASK,0,0);
SDL_PrivateMouseButton(SDL_PRESSED,SDL_BUTTON_RIGHT,0,0);
} else {
SDL_PrivateMouseButton(SDL_RELEASED,SDL_BUTTON_RMASK,0,0);
SDL_PrivateMouseButton(SDL_RELEASED,SDL_BUTTON_RIGHT,0,0);
} }
oldmousestate = __tmp;
}