포럼 회원으로 등록하신분만 다운로드가 가능합니다. 최대 업로드 가능한 용량은 20MB 입니다.

https://stackoverflow.com/questions/13398409/mouse-right-button-mapped-to-work-for-traversing-back-in-jelly-bean


https://codewalkerster.blogspot.kr/2012/07/ics-mouse-right-click-back-button.html


------------------------------------------------------

framework/base/services/input/inputreader.cpp 파일에서

case BTN_RIGHT:
    mBtnRight = rawEvent->value;
    break;

to

case BTN_RIGHT:                       
    mBtnBack = rawEvent->value;
    break;

이렇게 바꾸면 된다는데, 안된다는 질답입니다.


해서

요렇게 바꾸면 된다네요...^^


 in function reset(InputDevice* device) {

            replace mBtnRight = device->isKeyPressed(BTN_RIGHT); line to

                    mBtnBack =  device->isKeyPressed(BTN_RIGHT);

             and 
  in function process(const RawEvent* rawEvent) {

              remove  3 lines   case BTN_RIGHT:
                                mBtnRight = rawEvent->value;
                                break;
                     and Add "case BTN_RIGHT:" before case BTN_BACK:" as shown below

                     case BTN_RIGHT:
                     case BTN_BACK:                       
                     mBtnBack = rawEvent->value;
                     break;

"사람은 자기가 보고 싶은 현실만 볼 뿐이다." - Gaius Julius Caesar
엮인글 :
http://www.aesop.or.kr/index.php?mid=Board_Documents_Android_Frameworks&document_srl=139794&act=trackback&key=50d

고도리

2017.05.28 00:35:31
*.197.16.108

http://blog.naver.com/PostView.nhn?blogId=hyup8509&logNo=130146538046


input device관련은 여기 정리되어 있네요.

List of Articles
번호 제목 글쓴이 날짜 조회 수
» [android] mouse right button을 back key 처럼 동작시키는 방법 [1] 고도리 2017-05-28 264
83 [android] hello android application 작성법 관리자 2013-12-11 2440
82 DRM(Digital Rights Management) on Android file [1] 고도리 2012-07-06 5440
81 [자료] Android build system(안드로이드 빌드 시스템) for ICS file [7] 고도리 2012-04-16 7455
80 [추가 업데이트]안드로이드 플랫폼 공부를 시작할 수 있는 실습형 ... [17] 이제현 2012-04-11 8942
79 [펌] Android Device driver 정리 - 슬로우부트님 자료 file [3] 고도리 2011-12-01 8728
78 [펌] Android Device Driver 정리 문서 및 Stagefright 개념 ... file [5] 고도리 2011-11-22 9089
77 odroid7에서 KGDB를 이용한 커널 디버깅 방법 [6] 경주현 2011-10-06 7467
76 android boot시 shell script 실행시키기(혹은 binary) [1] 고도리 2011-09-30 7750
75 Android 2.3 멀티미디어(Multimedia) framework 구조자료 file [12] 고도리 2011-09-14 9532
74 Android Gingerbread Multimedia Framework 분석 - 1 file [7] 고도리 2011-08-08 10515
73 [안드로이드 책] Input관련 간단자료 및 PhoneWindowManager 연동 file [2] 고도리 2011-08-02 52236
72 [안드로이드 포팅 책] 1쇄 binder관련 그림 교체와 수정사항 file 고도리 2011-07-23 12774
71 [안드로이드 분석및포팅 교안] 1장 안드로이드 개요 및 구조 file [2] 고도리 2011-07-19 9494
70 [Android 분석 및 포팅] Binder의 동작원리 - #2 IPC/RPC file 고도리 2011-06-30 40886
69 [Android 분석 및 포팅] Binder의 동작원리 - #1 servicemanage... file [7] 고도리 2011-06-30 12009
68 Android 2.3 GingerBread Multimedia Framework 분석 - 1 [26] 고도리 2011-05-23 55863
67 [안드로이드] screen power save로 들어가는거 막는 부분 [2] 고도리 2010-10-28 12240
66 CodeViser 활용 aESOP-C100 보드 Android 디버깅 가이드 file pottery 2010-09-16 12840
65 Android 2.1 source tree 설명 file [20] 고도리 2010-09-02 15901

사용자 로그인