日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

今天应该写个咆哮体

發布時間:2023/12/20 编程问答 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 今天应该写个咆哮体 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

感冒好點了,得瑟了。

尼瑪早上加代碼,

改了沒多少,就尼瑪kernel panic了,有木有

尼瑪跟函數地址跟了一早上,有木有

尼瑪最終也沒看出來。。。

尼瑪還是把代碼回過去再重新改才發現

尼瑪就是因為少判斷了一種情況就kernel panic了有木有

尼瑪淚牛滿面啊

尼瑪昨天把我的一行寫寄存器的代碼去掉后。。。

尼瑪不能開機的問題就沒有了,有木有

尼瑪就一行啊。。。。。有木有

尼瑪項目經理還說我太瘋狂了,

尼瑪有木有啊。。。。

?

亂寫了一個,不符合咆哮體吧可能,沒有掌握寫作方法。就假裝是個咆哮體吧,哈哈。

今天寫的東西不多其實,晚上回來發了個patch,估計應該不能被用。只要大家能給我評論一下為啥不能被用就很不錯了呢,就怕沒人鳥。。。。哈哈。

嗯 ,就這樣吧,把昨天的代碼貼一下,開源啊。

1: #ifndef CONFIG_TOUCHSCREEN_SX8651_WITH_KEYPAD 2: static void touch_key_set_capacity(struct input_dev *input) {}; 3: static void touch_key_up(struct input_dev *input) {}; 4: static void touch_key_event(struct input_dev *input, u16 x, u16 y) {}; 5: #else 6: static int touch_key_pos[] = {700, 1650, 2550, 3500}; 7: static int touch_key_map[] = {KEY_MENU, KEY_HOME, KEY_BACK, KEY_SEARCH}; 8: /* you can modify this value to change the touch_key's sensitivity */ 9: static int touch_key_sensitivity = 50; 10: ? 11: static void touch_key_set_capacity(struct input_dev *input) 12: { 13: int i; 14: for (i = 0; i < ARRAY_SIZE(touch_key_map); i++) { 15: input_set_capability(input, EV_KEY, touch_key_map[i]); 16: } 17: } 18: ? 19: /* you must have an input_sync() followed this func . */ 20: static void touch_key_up(struct input_dev *input) 21: { 22: int i; 23: for (i = 0; i < ARRAY_SIZE(touch_key_map); i++) { 24: input_report_key(input, touch_key_map[i], 0); 25: } 26: } 27: ? 28: static void touch_key_event(struct input_dev *input, u16 x, u16 y) 29: { 30: int i; 31: if (y > Y_MAX) { 32: for (i = 0; i < ARRAY_SIZE(touch_key_pos); i++) { 33: if ((x > (touch_key_pos[i] - touch_key_sensitivity)) && 34: (x < (touch_key_pos[i] + touch_key_sensitivity))) { 35: input_report_key(input, touch_key_map[i], 1); 36: input_sync(input); 37: } 38: } 39: } 40: } 41: #endif

轉載于:https://www.cnblogs.com/linuxkernel/archive/2011/03/30/2000362.html

總結

以上是生活随笔為你收集整理的今天应该写个咆哮体的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。