Screenevent Alt & Ctrl

General FreeBASIC programming questions.
Post Reply
magellan
Posts: 44
Joined: Feb 18, 2009 17:35

Screenevent Alt & Ctrl

Post by magellan »

Screenevent seems to return the same scancode for Alt and Ctrl keys.
Is it my keyboard?
Is it supposed to be like this or is it a bug?
If it is supposed to be like this, and how do i tell those 2 keys apart?
Any help would be highly appreciated!
fxm
Moderator
Posts: 12107
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Post by fxm »

On my French keyboard

ScreenEvent in Graphic mode DirectX or GDI :
- Shift (left side) -> 42
- Ctrl (left side) -> 29
- Alt (left side) -> no detection
- Shift (right side) -> 42
- Ctrl (right side) -> 29
- Alt Gr (right side) -> 29

MultiKey in Text mode :
- Shift (left side) -> 42 & 54
- Ctrl (left side) -> 29
- Alt (left side) -> 56
- Shift (right side) -> 42 & 54
- Ctrl (right side) -> 29
- Alt Gr (right side) -> 29 & 56

MultiKey in Graphic mode DirectX :
- Shift (left side) -> 42
- Ctrl (left side) -> 29
- Alt (left side) -> 56
- Shift (right side) -> 54
- Ctrl (right side) -> 29
- Alt Gr (right side) -> 56

MultiKey in Graphic mode GDI :
- Shift (left side) -> 42 & 54
- Ctrl (left side) -> 29
- Alt (left side) -> 56
- Shift (right side) -> 42 & 54
- Ctrl (right side) -> 29
- Alt Gr (right side) -> 29 & 56

What coherence !!!
magellan
Posts: 44
Joined: Feb 18, 2009 17:35

Post by magellan »

Sounds like it isn't me then :)
Thats at least a little comforting
thanks fxm!
Post Reply