OpenHandhelds File Archive
Latest FilesLatest Files
AfterBurner 12/10/16
Space 52 (for Open2X fir... 21/09/16
Space 52 (for official f... 21/09/16
Boomshine2x (Java) 20/11/15
Pipes v2.1 11/08/15
AlexKidd2X v0.6.4u 29/05/15
PocketSNES v7.2.1 28/05/15
Coppergreen 18/02/15
Adamant Armor Affection ... 22/01/15
Cherry Candy Raep Gaiden 21/01/15
Lolicopocalypse 20/01/15
Snatcher Skin 06/03/14
Earthbound Skin for GMen... 06/03/14
Flappy Nerd 03/03/14
megazeux 29/08/13
Chicken Puyopuyo (Alpha ... 05/03/13
Chalcogens 29/11/12
Masteries Runners 26/11/12
Tyropite 25/11/12
GP2X System Tools 25/10/12
Flow 13/10/12
GP2X Hardware Library 11/09/12
1897 (Invention of the C... 29/08/12
Once upon a Time in the ... 26/08/12
Marte Necesita Vacas 18/08/12
Wiztern Demo (Bang!-like... 12/07/12
Wind and Water (Full Gam... 12/07/12
Firewhip (Full Game) 12/07/12
MazezaM 05/06/12
Sqrxz 3 - Adventure for ... 17/03/12
Ultratumba 08/03/12
La Escoba 08/03/12
EXP for GP2X 08/03/12
Bermuda Syndrome 06/03/12
Starship Soldier 04/03/12
Liquid Counter 04/03/12
Rookie Hero (EXP Version... 20/02/12
Puzzletube for the origi... 22/01/12
Puzzletube 20/01/12
Wizznic 0.9.9 05/01/12
Poutine 28/11/11
DJVU2X 29/10/11
Angband2x 28/10/11
Chess2X source code 17/08/11
Chess2X 17/08/11
Batiscafo 17/08/11
Rock Rain 2 17/08/11
Panta VS Dragon: El teso... 25/07/11
Pure 19/07/11
Geek 'em up 13/07/11

 File Info  Browsing as Guest 
Home : gp2x - Development : Sourcecodes : 158 Files 438.83 MB
 Simpler touchscreen example
This is yet another touch-screen sample program. Why did I make this when there are already a couple out there? Looking at the other sample code, I thought the touch screen was harder to use than it is. It's actually very easy, which this code hopefully illustrates.

This code is in plain C and uses SDL's mouse routines to talk to the touch screen -- thus touchscreen code can be tested on a PC with a mouse. It can be dynamically linked with the official GP2X SDK to produce a small binary that works on either the F100 or the F200 with GPH firmware. I have tested the resulting program on an F100 with firmware 2.0.0 and an F200 with firmware 4.0.0. On the F100, the program simply doesn't get mouse events. Everything else works as expected. I have not tested the dynamic executable on Open2x firmware.

I've included a script which will build the example using either the GP2X SDK or the Open2x toolchain, a README explaining build and link issues, and a pre-built binary.
 
Name: gp2x_touch-1.0.zip
Date: 02/06/2008
Size: 48.4 KB
Version: 1.0
Author: Micah Stetson
Website:
Downloads: 781
Sourcecode URL:
Licence:
default.gif
 
Operating Systems: gp2x F100
gp2x F200

Connection Download Time
56k Modem 8.8 secs
128k ISDN 3.7 secs
256k Cable/DSL 1.8 secs
512k Cable/DSL 0.9 secs
1mbit Link 0.5 secs
 
Download
 
Please note: The comment section is NOT intended to ask for help. Please use the I need Help-Section at the boards.
 8 Comments
 
Eclipse: 
 maybe your code is "simpler" because the other samples were done before the sdl support for the mouse binded with the touchscreen? :)
micah: 
 No. I'm using the same SDK I installed in the middle of 2006 -- there is no touchscreen support in my development libraries. The essential thing that I'm doing differently from the other examples is dynamic linking. I didn't mean to put down the other examples. Each one is showing something different. The original example shows how to get at the touchscreen using just the kernel interfaces under /proc. The second is a demo of SDL support for the touchscreen in an experimental version of Open2x. Mine shows how you can use SDL for the touchscreen while building with the tools you already have installed. I called mine simpler because it doesn't require talking to /proc, it doesn't require updating your SDK, and it's a bit less code to read than the others.
Eclipse: 
 nice, anyway touchscreen was already simple, but any code of public domain is good, hope to see more interesting touchscreen games
Flynn: 
 Very good. I looked into your sample to upgrade Fcalc, it made me understand what's the situation with the pad. Now for my 2-cents : it appears to me that it becomes even simpler since SDL just emulates the mouse from the touchscreen, so what has to be done is just ... nothing apart dealing with SDL mouse's events and it works. Trying to work with /dev/touchscreen/wm9xxx anymore is fatal beacause you get into concurrency with SDL stealing events. So to me upgrading to 4.1.0 is a must, even if some application will fail for a while; they will have to remove the ugly pad patch for 4.0.0, but dynamically-linked applications _may_ work unpatched.
micah: 
 I just tested the sample on firmware 4.0.2 and 4.1.1, and it works without any change. No kernel fix or recompile is necessary.
darrendemers12: 
 The Collection Marts is platform where you can view latest designs about home décor and bedding. We have large range in different categories with finest fabric in cotton and silk. beautiful bed sheets , king size comforter sets , gul ahmed single bed sheets , fancy bed sheets with price , bedspread online shopping , cotton bed mattress online , cheap blankets , bed razai set , jersey sofa cover , lawn dresses online , velvet duvet cover You can view not only present trends but also view huge collection with reasonable price. The Collection Marts can provide fast service about delivery as well as customer support too. Our products are not only self-made but also, well connected with markets to ensure for possibility of available designs if client want to purchase. The Collection Marts customer support open 24/7 to guide their customers about material or product stuff.
watches: 
 

all repica watches

Discount Watches, Fashion Watches, Wristwatch, Fake Watch, Wholesale Watches, Jewelry Watches, Replica Jewelry Watches. Omega Tudor Replica Watches Replica rolex Watch watches repica watch rm replica Tissot watches Replica Watch reflect the new watches sale Hermes Watch rich IWC Replica Replica Watch history Girard Perregaux Replica Watches Replica Replica replica Hublot watches Watches Chronoswiss Watch Replica and Replica blancpain experience of Replica tudor Watches a world-famous Oris Replica Watches Watches company, firmly established all swiss repica watch in Replica Cartier Chanel Replica Watches Replica Watches the Replica baume mercier Watches world Replica Vacheron Constantin Replica Watches Watch Replica Zenith Watches of Fake SevenFriday Replica Watches Watches Replica Tag Heuer Watch horology Replica replica Richard Mille watches Watches . fakes watch good swiss watch repica Perrelet Replica Watches Fake Watches For Fake replica Longines watches Watches Nomos Replica Watches Watches quite a Dior Watch Replica long Replica Breitling time the brand Replica U Boat Replica Watches Watch Replica replica Seiko watches Omega was Fake replica Oris watches Watches associated replica Jacob & Co. watches Fake Watches with accuracy replica Bulgari watches Watch and reliability of Swiss Rado Replica Replica Watch watches. The reason behind such Fake Baume Mercier Replica Watches a great replica Alain Silberstein watches Replica Watches Roger Dubuis Watch success is hot watch replica repicas copy watch style Piaget Replica Watches Replica high classic watches Movado Replica Watch Replica quality swiss repicas watch Replica Fortis Watches and Fake Chopard Watches good Bell Ross Fake Watches replica Hamilton watches Fake Watches design of Zenith Replica Watches Watches any repica perfect watches Omega watch. Everything named replica Glashutte Original watches Watch Replica Omega is Replica replica Baume & Mercier watches Watches Fake Blancpain Replica Watches remarkable for a replica Roger Dubuis watches Watch Omega Replica Fake Watches fine quality replica Movado watches Replica Watch and Bvlgari Replica Replica Watches Replica Hublot Omega replica best repica watch aaa watches Fake Breguet Watches as Alain Silberstein Fake Watches well. Omega Replica Longines Watch replica Fake Harry Winston Watches replica Patek Philippe watches Replica Watches are the replica watchs shop derivatives of all shop watch repica Replica replica Bell & Ross watches Watches the Replica Vacheron Constantin Replica Watch highest Replica Piaget Replica Watches Watches Fake Seiko Replica Watches standards of Replica Jacob Co Watch the Ebel Replica Watches Fake Watches Fake Graham Watches Swiss Ebel Fake Watches watchmaking. They are repica best watches replica Ulysse Nardin watches Replica Watches characterized replica TAG Heuer watches Replica Watch by utmost Replica Montblanc Replica Watches Watch Replica MontBlanc Watches accuracy Replica replica Jaeger-LeCoultre watches and reliability. all repica watches These replica Bedat & Co watches Fake Watches replica wristwatches Romain Jerome Replica Watch are popular Longines Replica Replica Watches in repica luxury shop watch markets shop watches repica Fake Longines Replica Watches Watches all over swis watches sale the world.
watches: 
 

copy watch style

Discount Watches, Fashion Watches, Wristwatch, Fake Watch, Wholesale Watches, Jewelry Watches, Replica Jewelry Watches. Through online luxury watches Replica replica Oris SWISS Watches Watch Replica replica Breitling SWISS Watches the years replica Rolex watches Watch Replica Cartier Replica Watches Watches the Tag Heuer brand replica best gained Rado Watch prestige Piaget Replica watches Replica Watch and new watch sale watch replica swiss jaeger lecoultre Replica became Tissot Watches Replica Audemars Piguet Replica Watches Watch one Replica Audemars Piguet Replica watches Watches blancpain Replica Watch of Replica Rolex Replica Watches Replica replica A Lange Sohne SWISS Watches Watches the most all swiss watch prestigious aaa replica watch Fake Jaeger LeCoultre Replica Watches Tissot Replica watches Watches Replica names A.Lange Sohne Watches in swiss watches store luxury shop watch Replica replica Chopard watches Watch Fake Parmigiani Replica watches Watches the world Glashutte Original Replica Replica Watches of replica watch shipping Hublot Replica watches Watch sports watches. Dior Replica Watch Replica TAG Heuer Replica Gerald Genta Replica watches Watches replica TAG Heuer watches Watch Replica watches Calvin Klein Replica watches Watches Replica series Tag Heuer Replica watches Watches Replica Bell Ross Replica watches Watch Replica embody fashion sports Rolex Replica Watches Fake Watches Replica replica Roger Dubuis SWISS Watches Watch and can be go Patek Philippe Replica Watches with Audemars Piguet Replica Watches Invicta Replica Watch all kinds U Boat Replica watches Replica Watch of clothes. There replica Hublot watches Watch Replica Replica Philippe Charriol Replica watches is Replica Blancpain Replica Watch Replica replica Breguet watches a swiss repicas Replica Chronoswiss boom Anonimo Replica watches Watch Fake replica Cartier SWISS Watches Watches in replica watch shop replica Rolex Replica Watches Replica Replica replica Seiko watches Watch TAG replica Omega SWISS Watches Replica Watch Omega Replica Watches Heuer replica watches Graham Replica Replica watches replica Hamilton watches Watches being produced replica Omega watches Watches Replica recently. With copy watch style replica Glashutte Original watches Watch Replica advances watch replica in Replica Bvlgari technology shop watch the Replica replica Ulysse Nardin watches Watch manufacturers Romain Jerome Replica Watches Fake replica Richard Mille watches Watches of all watches Maurice Lacroix Replica Watch TW Steel Replica watches Fake Watches original replica swiss watch replica watches are swiss watches hot best watchss using porsche design Replica Watch more Replica Roger Dubuis Replica watches IWC Replica watches Replica Watches foolproof clone swiss watch technologies Replica Audemars Pigue Watches Watches Replica emporio armani to replica watch Replica Bell Ross Watches deter perfect swiss watch Replica Corum Replica watches their Fake Versace Replica watches Watches watches Replica Carrera y Carrera Replica watches Watches from replica Jacob & Co. watches Fake Watches being copied. replica Cartier watches Watches But then, replica IWC SWISS Watches Watch the swiss replicas manufacturers of Rolex Replica Watches Watches Replica Tag replica luxury Heuer Replica Watches are Sinn Replica watches Watches also replica watches buy using the same all shop watch swiss watch sale Tag Heuer Harry Winston Replica Watch Ulysse Nardin Replica Replica watchestechnology replica sale Franck Dubarry Replica watches Watches Replica to watch replica Replica Dolce Gabana Replica watches manufacture best watch their replica swiss clocks Tag Heuer swiss watches sale Replica Replica Oris Watches Watches and replica watchs shop hence these timepieces fake watch shop good swiss watch Tissot Replica Replica Watches replica Romain Jerome watches Watch are exact perfect watch IWC Replica Watches Watch Replica Girard Perregaux Replica Watches Replica replica Oris watches Replica replicas swiss best watch of the best watch aaa Replica Raymond Weil original. Fake Salvatore Ferragamo Replica watches Watches Buy replica PANERAI Replica Watches Fake Watches TAG replica watch hot Mido Replica watches Watches Heuer watch fake luxury watches cheap replica watch replica U-Boat watches Watches Waltham Replica watches Watch today for Tourneau Replica watches Replica a Romain Jerome Replica watches Replica Watches gift, for replica Alain Silberstein watches Replica Watch a replica swiss watch friend, Replica replica Chanel SWISS Watches hublot Replica Watches Watch Replica or copy swiss watches for Cartier Replica Watches Fake Watches yourself. You replica watch best replica Audemars Piguet SWISS Watches Watches deserve Van Cleef Arpels Replica watches Watch designer quality hot watch replica Edox Replica watches Replica Watch at Rado Replica watches Replica Watch an affordable price. Cartier Replica Watch
 
%%COMMENTFORM%%
 

 Login
Username:  Password:  Remember me! 

Powered by CFiles 2.0-b10
Copyright © 2002-2003 Carrick Information Technologies
Most DownloadsMost Downloads
Rndis Drivers Pack for w... 129,538
Arcade: MAMEGP2x 123,957
GP2X User Guide 49,943
NeoGeo: GNGeo2x 46,267
GameBoy Advance: gpSP 43,089
Arcade: MAME4ALL 40,390
Genesis: DrMDx 39,291
Genesis / MegaCD: PicoDr... 37,034
SNES: PocketSNES 36,478
SNES: SquidgeSNES 28,117
Duke3D 26,109
Quake I 25,769
gp2x SDL Libraries 22,282
Firmware 2.0.0 20,994
MP2X 20,425
GMenu2x 20,021
NES: GPFCE 19,964
GameBoy: GnuBoy 19,920
NeoGeo: Rage2X (GNGeo Fr... 19,210
Amiga: uae4allgp2x 18,151
MAMEGP2x Sources 17,588
Arcade: MAME4ALL - Sampl... 16,790
SNES: SNES9x 16,447
Arcade: cps2emu test ver... 16,335
PCEngine: GP2XEngine 16,085
CPU/LCD-Tweaker 15,243
Cave Story ~ Doukutsu Mo... 14,902
Linux-USB Ethernet/RNDIS... 14,691
SuperTux 14,224
GameBoy Advance: vba2x-r 13,151
FBA Cache 12,881
GP2xTRA - issue #01 12,781
Firmware 4.0.0 for F100 12,648
SMS / GG: Alexkidd2x 12,533
Commodore Machines: Vice... 12,410
Firmware 2.1.1 12,345
Super Maryo Chronicles 12,218
gp2x - PSP - NDS Video C... 12,215
Arcade: MAME4ALL - Artwo... 12,172
NeoGeo CD: NeoCD2X 11,837
PC-Engine: HU6280 PC-Eng... 11,671
Atari ST: OutcaST / CaST... 11,462
Egoboo2x 11,113
Full Devkit 2006/03/06 11,108
PDFView 10,738
C64: Frodo2x 10,636
Firmware 1.4.0 10,599
TTD2X: Transport Tycoon ... 10,317
Arcade: FBA2X - FinalBur... 10,050
Neo Geo Pocket: RACE! 9,811

Theme Design By Carrick Information Technologies