Support pressure in touches. Attempt to fix らくらく phones with device data overrides, but even though all buttons are now clickable, they trigger too easily in the homescreen.

This commit is contained in:
Simo Kinnunen
2014-07-23 16:54:24 +09:00
parent 7673fe8045
commit d8dec38cad
3 changed files with 83 additions and 31 deletions

View File

@@ -0,0 +1,20 @@
var syrup = require('syrup')
var deviceData = require('stf-device-db')
var logger = require('../../../util/logger')
module.exports = syrup.serial()
.dependency(require('./identity'))
.define(function(options, identity) {
var log = logger.createLogger('device:plugins:data')
function find() {
var data = deviceData.find(identity)
if (!data) {
log.warn('Unable to find device data')
}
return data
}
return find()
})