Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 576999 Details for
Bug 811887
SDL does not respect pointer device button mapping when pointer is grabbed and hidden
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Reproducer
buttontest.c (text/plain), 1.44 KB, created by
Petr Pisar
on 2012-04-12 08:54:18 UTC
(
hide
)
Description:
Reproducer
Filename:
MIME Type:
Creator:
Petr Pisar
Created:
2012-04-12 08:54:18 UTC
Size:
1.44 KB
patch
obsolete
>#include "SDL/SDL.h" >#include <stdio.h> > >SDL_Surface *screen; > >SDL_Event event; > >int main(int argc, char *argv[]) >{ > SDL_Init(SDL_INIT_VIDEO); > > screen = SDL_SetVideoMode(320, 240, 16, SDL_SWSURFACE); > > printf("Show cursor: %d ; Grab input: %d\n", > SDL_ShowCursor(SDL_QUERY), > SDL_WM_GrabInput(SDL_GRAB_QUERY)); > > int done=0; > > while (!done) > { > while (SDL_PollEvent(&event)) > { > if (event.type == SDL_QUIT) > { > done=1; > } > > if (event.type == SDL_MOUSEBUTTONDOWN) > { > if (event.button.button == SDL_BUTTON_LEFT) > { > printf("SDL_BUTTON_LEFT\n"); > } > else if (event.button.button == SDL_BUTTON_RIGHT) > { > printf("SDL_BUTTON_RIGHT\n"); > } > else if (event.button.button == SDL_BUTTON_MIDDLE) > { > if (SDL_WM_GrabInput(SDL_GRAB_QUERY) == SDL_GRAB_OFF) > { > SDL_ShowCursor(!SDL_ShowCursor(SDL_QUERY)); > SDL_WM_GrabInput(SDL_GRAB_ON); > } > else > { > SDL_WM_GrabInput(SDL_GRAB_OFF); > } > printf("Show cursor: %d ; Grab input: %d\n", > SDL_ShowCursor(SDL_QUERY), > SDL_WM_GrabInput(SDL_GRAB_QUERY)); > } > } > } > } > > SDL_Quit(); > > return 0; >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 811887
: 576999