03-25-2018
Moderator's Comments:
|
|
Link to untrusted site removed
|
|
5 More Discussions You Might Find Interesting
1. Linux
i m doing project on LAN TELEPHONY in Red Hat linux
i have files as datbase to store the user name and passeord an all other information. Now i have thin client at my college. so to access /dev/dsp for audio is not possible on server.
So i have written code which run on /base since it has... (0 Replies)
Discussion started by: niravuchat
0 Replies
2. Solaris
1) I want a free emulation software for Sun Solaris.
2) I have three servers for different billing systems and i want that when i(or other clients) logon to one server the color of the screen should be permanently same and when on second system it should be permanently second color. Even if i... (2 Replies)
Discussion started by: blackeyed
2 Replies
3. Solaris
Hi All,
I going to install Sun Ray 3 and X4170 with sol 10 and VDI 3.2. I don't know how to do it because I don't have any idea on VDI and Sun Ray 3.
Can all the guru here provide some info or theory on the whole idea for this kind of installation and maybe some steps.
I now have 2 servers... (1 Reply)
Discussion started by: mailbox80
1 Replies
4. UNIX Desktop Questions & Answers
hi
I'm looking for a slim and quite comfortable window manager for a unix/linux thin client? (5 Replies)
Discussion started by: ccc
5 Replies
5. Linux
I have old pc with 1gb ram
and i wont to convert him to thin clint to connect rdp windos
With software i need to install on my computer?
I am new in linux..
Sent from my SM-J5108 using Tapatalk (10 Replies)
Discussion started by: popcoern
10 Replies
LEARN ABOUT REDHAT
sdl_keysym
SDL_keysym(3) SDL API Reference SDL_keysym(3)
NAME
SDL_keysym- Keysym structure
STRUCTURE DEFINITION
typedef struct{
Uint8 scancode;
SDLKey sym;
SDLMod mod;
Uint16 unicode;
} SDL_keysym;
STRUCTURE DATA
scancode Hardware specific scancode
sym SDL virtual keysym
mod Current key modifiers
unicode Translated character
DESCRIPTION
The SDL_keysym structure is used by reporting key presses and releases since it is a part of the SDL_KeyboardEvent.
The scancode field should generally be left alone, it is the hardware dependent scancode returned by the keyboard. The sym field is
extremely useful. It is the SDL-defined value of the key (see SDL Key Syms. This field is very useful when you are checking for certain key
presses, like so:
.
.
while(SDL_PollEvent(&event)){
switch(event.type){
case SDL_KEYDOWN:
if(event.key.keysym.sym==SDLK_LEFT)
move_left();
break;
.
.
.
}
}
.
.
mod stores the current state of the keyboard modifiers as explained in SDL_GetModState. The unicode is only used when UNICODE translation
is enabled with SDL_EnableUNICODE. If unicode is non-zero then this a the UNICODE character corresponding to the keypress. If the high 9
bits of the character are 0, then this maps to the equivalent ASCII character:
char ch;
if ( (keysym.unicode & 0xFF80) == 0 ) {
ch = keysym.unicode & 0x7F;
}
else {
printf("An International Character.
");
}
UNICODE translation does have a slight overhead so don't enable it unless its needed.
SEE ALSO
SDLKey
SDL
Tue 11 Sep 2001, 23:00 SDL_keysym(3)