Fix address of motion event timestamp (#5171)

* Fix base address of motion event timestamp

* Add myself to AUTHORS
This commit is contained in:
CHIBA Fumiya 2017-04-29 02:15:25 +09:00 коммит произвёл Alon Zakai
Родитель 5f559e26ff
Коммит 74b1040018
2 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -289,3 +289,4 @@ a license to everyone to use it as detailed in LICENSE.)
* Jean-François Geyelin <jfgeyelin@gmail.com>
* Matthew Collins <thethinkofdeath@gmail.com>
* Satoshi N. M <snmatsutake@yahoo.co.jp>
* Fumiya Chiba <fumiya.chiba@nifty.com>

Просмотреть файл

@ -475,7 +475,7 @@ var LibraryJSEvents = {
var handlerFunc = function(event) {
var e = event || window.event;
{{{ makeSetValue('JSEvents.deviceOrientationEvent', C_STRUCTS.EmscriptenDeviceMotionEvent.timestamp, 'JSEvents.tick()', 'double') }}};
{{{ makeSetValue('JSEvents.deviceMotionEvent', C_STRUCTS.EmscriptenDeviceMotionEvent.timestamp, 'JSEvents.tick()', 'double') }}};
{{{ makeSetValue('JSEvents.deviceMotionEvent', C_STRUCTS.EmscriptenDeviceMotionEvent.accelerationX, 'e.acceleration.x', 'double') }}};
{{{ makeSetValue('JSEvents.deviceMotionEvent', C_STRUCTS.EmscriptenDeviceMotionEvent.accelerationY, 'e.acceleration.y', 'double') }}};
{{{ makeSetValue('JSEvents.deviceMotionEvent', C_STRUCTS.EmscriptenDeviceMotionEvent.accelerationZ, 'e.acceleration.z', 'double') }}};