Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
856b37bf
Commit
856b37bf
authored
Jun 11, 2012
by
Anatoly Mihalchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comments are added
parent
3213bf08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
UBPlatformUtils.h
src/frameworks/UBPlatformUtils.h
+23
-1
No files found.
src/frameworks/UBPlatformUtils.h
View file @
856b37bf
...
@@ -23,6 +23,16 @@ class QMainWindow;
...
@@ -23,6 +23,16 @@ class QMainWindow;
#define SYMBOL_KEYS_COUNT 47
#define SYMBOL_KEYS_COUNT 47
/*
Declaration for single keycode (code, which will be sent to output after pressing of button)
Each button has several codes, associated with shift state and modifier
symbol - (Windows only) Unide symbol to send
code - (LINUX, MAC) - code of key to press. Phisical keycode on MAC, position in keys table on LINUX
modifier (LINUX) - offset in keys table
*/
struct
KEYCODE
{
struct
KEYCODE
{
KEYCODE
()
KEYCODE
()
:
symbol
(
0
)
:
symbol
(
0
)
...
@@ -55,7 +65,19 @@ struct KEYCODE{
...
@@ -55,7 +65,19 @@ struct KEYCODE{
int
modifier
;
int
modifier
;
};
};
/*
Declaration of single button. Properties:
symbol1, symbol2 - symbols to display under obscreen keyboard on normal/shifted modes
capsLockSwitch - if true, CapsLock button switched keystate to "shifted"
modifier1/modifier2 - if >0 means modified symbol for next press (modifier * 2 + shiststate index in codes array)
If this code dedined (not empty), this symbol will sent to output. For French keyboard layout
codes[i] - code for pressed symbol.
code[0] - normal symbol
code[1] - shifted symbol
code[2] - modifier = 1, normal symbol
code[3] - modifier = 1, shifted symbol
...
*/
struct
KEYBT
struct
KEYBT
{
{
QChar
symbol1
;
QChar
symbol1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment