Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tales of MajEyal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
K'van
Tales of MajEyal
Commits
ed8314bd
Commit
ed8314bd
authored
11 years ago
by
DarkGod
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of git.net-core.org:darkgod/t-engine4
parents
22186041
621f07e9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/web-cef3/build/windows/build.bat
+36
-0
36 additions, 0 deletions
src/web-cef3/build/windows/build.bat
src/web-cef3/web.cpp
+2
-2
2 additions, 2 deletions
src/web-cef3/web.cpp
with
38 additions
and
2 deletions
src/web-cef3/build/windows/build.bat
0 → 100644
+
36
−
0
View file @
ed8314bd
@rem Script to compile T-Engine's webapi functionality.
@rem See copyright notice in web-te4.h.
@rem To use: load a windows SDK command prompt, navigate to source file root
@rem setenv /release /x86 /xp
@rem build\windows\build-te4-web.bat
@rem SDK tools to use (with options)
@rem TODO: offer a debugging build?
@if
not
defined
INCLUDE
goto
:BADENV
@setlocal
@set
CXX
=
cl
@set
CXXFLAGS
=
/nologo /MT /O
2
/W
3
/D
_CRT_SECURE_NO_DEPRECATE
/EHsc /DSELFEXE
_WINDOWS
@rem @set CXXFLAGS=/nologo /MT /Od /Zi /Wall /D_CRT_SECURE_NO_DEPRECATE /EHsc
@set
DLLNAME
=
te4
-web
.dll
@set
LIBNAME
=
te4
-web
.lib
@set
TE4_WEB_C
=
web
.cpp
web
-utils
.cpp
@set
TE4_WEB_INCLUDES
=
/I
".."
/I
"C:\MingW\include\SDL2"
/I
"n:\libs\cef3\include"
/I
"n:\libs\cef3"
@set
TE4_WEB_LIBS
=
"n:\libs\cef3\Release\libcef.lib"
"n:\libs\cef3\out\Release\lib\libcef_dll_wrapper.lib"
%CXX%
%CXXFLAGS%
/LD /Fe
%DLLNAME%
%TE4
_WEB_INCLUDES
%
%TE4
_WEB_C
%
%TE4
_WEB_LIBS
%
@if
errorlevel
1
goto
:COMPILATION
_ERROR
@rem All done.
@echo
Successfully
built
%DLLNAME%
.
@goto
:END
:COMPILATION
_ERROR
@echo
ERROR
:
Failed
to
build
te4web
.
Check
SDK
tool
output
for
errors
.
@goto
:END
:BAD
_ENV
@echo
ERROR
:
Must
be
compiled
in
a
Windows
SDK
Command
Prompt
!
:END
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/web-cef3/web.cpp
+
2
−
2
View file @
ed8314bd
...
...
@@ -480,7 +480,6 @@ void te4_web_inject_key(web_view_type *view, int scancode, int asymb, const char
if
(
view
->
closed
)
return
;
int
key_code
=
scancode
;
printf
(
"<==== %d :: %d :: %d
\n
"
,
key_code
,
unilen
,
SDLK_RETURN
);
CefKeyEvent
key_event
;
...
...
@@ -515,7 +514,8 @@ void te4_web_inject_key(web_view_type *view, int scancode, int asymb, const char
// This has been fully untested and most certainly isnt working
BYTE
VkCode
=
LOBYTE
(
VkKeyScanA
(
key_code
));
UINT
scanCode
=
MapVirtualKey
(
VkCode
,
MAPVK_VK_TO_VSC
);
cef_event
.
native_key_code
=
(
scanCode
<<
16
)
|
// key scan code
key_event
.
native_key_code
=
(
scanCode
<<
16
)
|
// key scan code
1
;
// key repeat count
#elif defined(SELFEXE_MACOSX)
if
(
key_code
==
SDLK_BACKSPACE
)
{
cef_event
.
native_key_code
=
kVK_Delete
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment