When playing full-screen games such as Angry Birds on android, TP becomes invalid. androidtp

Source: Internet
Author: User

When playing full-screen games such as Angry Birds on android, TP becomes invalid. androidtp
1. The tpd_down () and tpd_up () Functions of the tp driver do not need to report the ID number, and the upper layer will automatically match;
2. In the tpd_up () function, you only need to report BTN_TOUCH and mt_sync information. Other information is not reported, as shown below:
Static void tpd_up (int x, int y, int * count)
{
Input_report_key (tpd-> dev, BTN_TOUCH, 0 );
// Printk ("U [% 4d % 4d % 4d]", x, y, 0 );
Input_mt_sync (tpd-> dev );
TPD_EM_PRINT (x, y, x, y, 0, 0 );
If (FACTORY_BOOT = get_boot_mode () | RECOVERY_BOOT = get_boot_mode ())
{
Tpd_button (x, y, 0 );
}
}
How can angry birds in a game be displayed in a window instead of a full screen?"

Open the config. lua file in Notepad
Change fullscreen = true to fullscreen = false.
The two are width and height settings.
Width = 800
Height = 600
Set by yourself

How can Angry Birds enable full screen by default?

Use NotePad to edit the config in the installation directory of Angry Birds. in the lua file, if the statement is "fullscreen = false", then you are not the default full screen. Change this sentence to "fullscreen = true", and then save the file and run the game again.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.