/****************************************************************** Copyright © Deng Zhimao Co., Ltd. 1990-2030. All rights reserved. * @projectName iotest * @brief keysthread.cpp * @author Deng Zhimao * @email 1252699831@qq.com * @date 2020-07-20 *******************************************************************/ #include "keysthread.h" #include #include "beep.h" #include #include #include #include #include #include #include #include #if __arm__ #include #endif KeysThread::KeysThread(QObject *parent) { key0Value = false; key1Value = false; startFlag = false; } KeysThread::~KeysThread() { } void KeysThread::run() { #if __arm__ int fd; char const *filename = "/dev/input/event1"; struct input_event input_ev; fd = open(filename, O_RDWR); if(fd < 0){ qDebug()<<"file open failed!"<