Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
fb31220f
Commit
fb31220f
authored
Dec 01, 2018
by
Ulrich Sibiller
Committed by
Mike Gabriel
Dec 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keyboard.c: reformat nxagentKeycodeConversionSetup
parent
3c4a8da1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
19 deletions
+18
-19
Keyboard.c
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+18
-19
No files found.
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
View file @
fb31220f
...
@@ -1644,35 +1644,34 @@ void nxagentKeycodeConversionSetup(char * rules, char * model)
...
@@ -1644,35 +1644,34 @@ void nxagentKeycodeConversionSetup(char * rules, char * model)
{
{
fprintf
(
stderr
,
"Info: Keycode conversion is off
\n
"
);
fprintf
(
stderr
,
"Info: Keycode conversion is off
\n
"
);
nxagentKeycodeConversion
=
False
;
nxagentKeycodeConversion
=
False
;
return
;
}
}
else
if
(
nxagentOption
(
KeycodeConversion
)
==
KeycodeConversionOn
)
else
if
(
nxagentOption
(
KeycodeConversion
)
==
KeycodeConversionOn
)
{
{
fprintf
(
stderr
,
"Info: Keycode conversion is on
\n
"
);
fprintf
(
stderr
,
"Info: Keycode conversion is on
\n
"
);
nxagentKeycodeConversion
=
True
;
nxagentKeycodeConversion
=
True
;
return
;
}
if
(
rules
&&
model
&&
(
strcmp
(
rules
,
"evdev"
)
==
0
||
strcmp
(
model
,
"evdev"
)
==
0
))
{
#ifdef DEBUG
fprintf
(
stderr
,
"%s: Activating KeyCode conversion.
\n
"
,
__func__
);
#endif
fprintf
(
stderr
,
"Info: Keycode conversion auto-determined as on
\n
"
);
nxagentKeycodeConversion
=
True
;
}
}
else
else
{
{
#ifdef DEBUG
if
(
rules
&&
model
&&
fprintf
(
stderr
,
"%s: Deactivating KeyCode conversion.
\n
"
,
__func__
);
(
strcmp
(
rules
,
"evdev"
)
==
0
||
#endif
strcmp
(
model
,
"evdev"
)
==
0
))
{
#ifdef DEBUG
fprintf
(
stderr
,
"%s: Activating KeyCode conversion.
\n
"
,
__func__
);
#endif
fprintf
(
stderr
,
"Info: Keycode conversion auto-determined as off
\n
"
);
fprintf
(
stderr
,
"Info: Keycode conversion auto-determined as on
\n
"
);
nxagentKeycodeConversion
=
True
;
}
else
{
#ifdef DEBUG
fprintf
(
stderr
,
"%s: Deactivating KeyCode conversion.
\n
"
,
__func__
);
#endif
nxagentKeycodeConversion
=
False
;
fprintf
(
stderr
,
"Info: Keycode conversion auto-determined as off
\n
"
);
nxagentKeycodeConversion
=
False
;
}
}
}
}
}
...
...
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