ALT Linux Bugzilla
– Attachment 2190 Details for
Bug 12746
Теряются события клавиатуры
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
testcase
test.c (text/plain), 554 bytes, created by
Alexey Petrakov
on 2007-09-11 12:10:13 MSD
(
hide
)
Description:
testcase
Filename:
MIME Type:
Creator:
Alexey Petrakov
Created:
2007-09-11 12:10:13 MSD
Size:
554 bytes
patch
obsolete
>#include <SDL/SDL.h> >#include <stdio.h> > >SDL_Surface *screen; > >void cleanup() >{ > SDL_FreeSurface(screen); > SDL_Quit(); >} > >int main() >{ > SDL_Event event; > > SDL_Init(SDL_INIT_VIDEO); > screen = SDL_SetVideoMode(800, 600, 32, 0); > while (1) > { > while (SDL_PollEvent(&event)) > { > printf("%d", event.type); > if (event.type == SDL_KEYUP || event.type == SDL_KEYDOWN) > { > printf(", %d", event.key.keysym.scancode); > } > printf("\n"); > if (event.type == SDL_QUIT) > { > cleanup(); > 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 12746
: 2190