MCPcopy Create free account
hub / github.com/beefytech/Beef / KeyboardLayoutHasAltGr

Function KeyboardLayoutHasAltGr

BeefySysLib/platform/win/WinBFApp.cpp:79–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79static BOOL KeyboardLayoutHasAltGr(HKL layout)
80{
81 BOOL hasAltGr = FALSE;
82 int scancode;
83 for (WORD i = 32; i < 256; ++i)
84 {
85 scancode = VkKeyScanEx((TCHAR)i, layout);
86 if ((scancode != -1) && ((scancode & 0x600) == 0x600))
87 {
88 hasAltGr = TRUE;
89 break;
90 }
91 }
92 return hasAltGr;
93}
94
95WinBFWindow::WinBFWindow(BFWindow* parent, const StringImpl& title, int x, int y, int width, int height, int windowFlags)
96{

Callers 2

WinBFWindowMethod · 0.85
WindowProcMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected