포럼 회원으로 등록하신분만 다운로드가 가능합니다. 최대 업로드 가능한 용량은 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=91a

고도리

2017.05.28 00:35:31
*.197.16.108

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


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

List of Articles
번호 제목 글쓴이 날짜 조회 수sort
84 Android 2.3 GingerBread Multimedia Framework 분석 - 1 [26] 고도리 2011-05-23 55368
83 [안드로이드 책] Input관련 간단자료 및 PhoneWindowManager 연동 file [2] 고도리 2011-08-02 51742
82 [Android 분석 및 포팅] Binder의 동작원리 - #2 IPC/RPC file 고도리 2011-06-30 40882
81 Android Initialization Process 최종환 2009-04-09 24638
80 OpenGL ES와 Android [3] 이제현 2009-04-18 22839
79 [참고] Android wifi howto - 아직 테스트는 다 못했습니다. file [10] 고도리 2009-09-22 21723
78 Android용 root filesystem으로 cramfs 구성 할 때의 주의사항 [7] 김영문 2009-04-09 21375
77 Android에서의 Linux Network 환경 설정 방법 [1] 김재훈 2009-04-21 20509
76 S3C6410 target으로의 Android porting에 대하여(1) [3] 고현철 2009-04-23 20133
75 [번역] Android Camera Framework 번역 file [7] 고도리 2009-09-10 19665
74 Android make옵션 [3] 2009-07-16 19464
73 Android 2.x AudioFlinger와 HAL의 연결 구조 분석 [2] JhoonKim 2010-04-08 19341
72 Android Debug Bridge(ADB) 사용 가이드 김재훈 2009-04-09 18864
71 Android audioflinger 분석자료 입니다. file [11] 고현철 2009-07-30 18819
70 android를 6410에 포팅하면서... [7] 전병환 2009-04-10 18227
69 PV와 Android [5] 이제현 2009-04-19 18163
68 [번역] Android Opencore Multimedia Framework 번역본 file [7] 고도리 2009-08-25 17636
67 Android 윈도우에서 git로 소스 받기.. [3] 2009-07-14 17021
66 Android 부팅 및 초기화 절차 김재훈 2009-04-09 16999
65 Android OpenCore 모임추진 ? [8] 장석원 2009-08-07 16001

사용자 로그인