Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8751937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:08:27+00:00 2026-06-13T13:08:27+00:00

When I get a touch event with its coordinate in android frameworks, I can

  • 0

When I get a touch event with its coordinate in android frameworks,
I can use ioctl to send the user event to kernel,
then let the driver convert it to system input event.( use: input_sync, input_report_key, input_report_abs etc.)

The problem is:

As i known, the android swipe events may like this:(swipe down)
{ type, code, value }

    {3,48,5}, {3,50,1}, {3,53,240}, {3,54,400},
    {1,330,1},

    {3,58,255}, {3,57,0},
    {0,2,0},{0,0,0},

    {3,48,0},{3,50,1},{3,53,240},{3,54,450},{3,58,255},{3,57,0},
    {0,2,0},{0,0,0},

    {3,0,0},{3,1,450},{3,57,15},
    {0,0,0},{1,330,0},

    {3,48,0},{3,50,1},{3,53,240},{3,54,450},{3,58,0},
    {0,2,0},{0,0,0}

type=0, represents sync

type=1, represents key

type=3, code=53,54, value represents coordinate

type=3, code=48,50,57,58, value represents touch tool propertys.

so, only type=3, code=53,54 or type=1 are the input parameters, others need to be inserted in the convertion of user event to system event.

Should I coding like this:

// in driver
if ( get an event )
{
    report touch tool event;    
    report the x,y/key event;   // from input params
    report the sync event;
}

or there is a better way?

thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T13:08:28+00:00Added an answer on June 13, 2026 at 1:08 pm

    I found linux uinput interface, which can generate input events in user space more convenient.

    http://thiemonge.org/getting-started-with-uinput

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Touch may specify self to get the touch location in its own coordinate system
how to get a touch event only on specified view.Not on other view -(void)touchesEnded:(NSSet
I know I can get touch events in my iPhone app. But these touch
How can I get input data from the rear touch pad on the Vita
I'm currently working with webkit and touch events. I can get an element to
I'm basically trying to get all touch event data from something like a system
I tried to understand how Android handle touch event and got a little bit
i want to get pixel value when i touch my screen. its in a
My class extends View and I need to get continuous touch events on it.
I'm developing an app which requires the system to get the touch events even

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.