#define FEATURE_KEY_SMART_MONITOR \
"com.samsung/featureconf/product.smart_monitor_feature_support"
+#define FMS_KEY_TOUCH "com.samsung/featureconf/touch_module_support"
+
// RM index is not available at public include. It had to be copied from
// Resource-mgr/resource-info/include_internal/parser/CResourceTableProvider.h
enum class ResourceTableIndex {
return support;
}
+inline bool IsKEYTouchSupported() {
+ bool support = false;
+ const int info_ret = system_info_get_custom_bool(FMS_KEY_TOUCH, &support);
+ if (info_ret != SYSTEM_INFO_ERROR_NONE) {
+ LOG(WARNING) << "(System info error:" << info_ret
+ << ") Fail to get key_touch support!!";
+ return false;
+ }
+
+ LOG(INFO) << "KEY touch is supported : " << support;
+ return support;
+}
+
inline bool IsTouchSupported() {
- bool support = IsLFDTouchSupported() || IsIRTouchSupported();
+ bool support =
+ IsLFDTouchSupported() || IsIRTouchSupported() || IsKEYTouchSupported();
LOG(INFO) << "touch is supported : " << support;
return support;
}