Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sxychenjing
engine
提交
d664dbfa
E
engine
项目概览
sxychenjing
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d664dbfa
编写于
7月 29, 2015
作者:
C
Chinmay Garde
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #358 from chinmaygarde/master
Specify a default launch screen for iOS Asteroids
上级
d14eba08
2a829f94
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
13 addition
and
4 deletion
+13
-4
sky/build/sky_app.gni
sky/build/sky_app.gni
+1
-1
sky/packages/sky/example/game/BUILD.gn
sky/packages/sky/example/game/BUILD.gn
+2
-1
sky/packages/sky/example/game/ios/Info.plist
sky/packages/sky/example/game/ios/Info.plist
+3
-0
sky/packages/sky/example/game/ios/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib
...s/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib
+0
-0
sky/packages/sky/example/game/ios/LaunchScreen.storyboardc/Info.plist
.../sky/example/game/ios/LaunchScreen.storyboardc/Info.plist
+0
-0
sky/packages/sky/example/game/ios/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib
.../LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib
+0
-0
sky/shell/ios/sky_surface.mm
sky/shell/ios/sky_surface.mm
+7
-2
未找到文件。
sky/build/sky_app.gni
浏览文件 @
d664dbfa
...
...
@@ -113,7 +113,7 @@ template("sky_app") {
"$target_gen_dir/app.skyx",
]
resources += invoker.launcher_
icon
s
resources += invoker.launcher_
resource
s
bundle_directory = "."
deps = [ ":app" ]
...
...
sky/packages/sky/example/game/BUILD.gn
浏览文件 @
d664dbfa
...
...
@@ -16,9 +16,10 @@ sky_app("game") {
]
} else if (is_ios) {
info_plist = "ios/Info.plist"
launcher_
icon
s = [
launcher_
resource
s = [
"assets/Icon.png",
"assets/Icon@2x.png",
"ios/LaunchScreen.storyboardc",
]
}
}
sky/packages/sky/example/game/ios/Info.plist
浏览文件 @
d664dbfa
...
...
@@ -15,6 +15,9 @@
<key>
CFBundleDisplayName
</key>
<string>
Asteroids
</string>
<key>
UILaunchStoryboardName
</key>
<string>
LaunchScreen
</string>
<key>
CFBundleIdentifier
</key>
<string>
org.domokit.sky.game
</string>
...
...
sky/packages/sky/example/game/ios/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib
0 → 100644
浏览文件 @
d664dbfa
文件已添加
sky/packages/sky/example/game/ios/LaunchScreen.storyboardc/Info.plist
0 → 100644
浏览文件 @
d664dbfa
文件已添加
sky/packages/sky/example/game/ios/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib
0 → 100644
浏览文件 @
d664dbfa
文件已添加
sky/shell/ios/sky_surface.mm
浏览文件 @
d664dbfa
...
...
@@ -58,6 +58,7 @@ static sky::InputEventPtr BasicInputEventFromRecognizer(
@implementation
SkySurface
{
BOOL
_platformViewInitialized
;
CGPoint
_lastScrollTranslation
;
sky
::
SkyEnginePtr
_sky_engine
;
scoped_ptr
<
sky
::
shell
::
ShellView
>
_shell_view
;
...
...
@@ -274,6 +275,7 @@ static sky::InputEventPtr BasicInputEventFromRecognizer(
sky
::
EventType
type
=
sky
::
EVENT_TYPE_UNKNOWN
;
switch
(
recognizer
.
state
)
{
case
UIGestureRecognizerStateBegan
:
_lastScrollTranslation
=
CGPointZero
;
type
=
sky
::
EVENT_TYPE_GESTURE_SCROLL_BEGIN
;
break
;
case
UIGestureRecognizerStateChanged
:
...
...
@@ -297,8 +299,11 @@ static sky::InputEventPtr BasicInputEventFromRecognizer(
auto
translation
=
[
recognizer
translationInView
:
self
];
auto
velocity
=
[
recognizer
velocityInView
:
self
];
input
->
gesture_data
->
dx
=
translation
.
x
*
scale
;
input
->
gesture_data
->
dy
=
translation
.
y
*
scale
;
input
->
gesture_data
->
dx
=
(
translation
.
x
-
_lastScrollTranslation
.
x
)
*
scale
;
input
->
gesture_data
->
dy
=
(
translation
.
y
-
_lastScrollTranslation
.
y
)
*
scale
;
_lastScrollTranslation
=
translation
;
input
->
gesture_data
->
velocityX
=
velocity
.
x
*
scale
;
input
->
gesture_data
->
velocityY
=
velocity
.
y
*
scale
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录