diff options
| author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-06-16 17:04:47 +0000 |
|---|---|---|
| committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-06-16 17:04:47 +0000 |
| commit | b8435f54464fd50c145d321b118d773ea05ef6a2 (patch) | |
| tree | a514bbe44e41c454dfca56184376209787c40268 /firmware/export/touchscreen.h | |
| parent | b1a60934c5d178842ec3bec83a3e5286410cab7d (diff) | |
| download | rockbox-b8435f54464fd50c145d321b118d773ea05ef6a2.zip rockbox-b8435f54464fd50c145d321b118d773ea05ef6a2.tar.gz rockbox-b8435f54464fd50c145d321b118d773ea05ef6a2.tar.bz2 rockbox-b8435f54464fd50c145d321b118d773ea05ef6a2.tar.xz | |
Touchscreen targets: add calibration screen + rewrite calibration driver (FS#10295)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21312 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/touchscreen.h')
| -rwxr-xr-x | firmware/export/touchscreen.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/firmware/export/touchscreen.h b/firmware/export/touchscreen.h index 0d8233a..7d1eb4a 100755 --- a/firmware/export/touchscreen.h +++ b/firmware/export/touchscreen.h @@ -24,10 +24,14 @@ struct touchscreen_calibration { - int x[3]; - int xfb[3]; - int y[3]; - int yfb[3]; + int x[3][2]; + int y[3][2]; +}; + +struct touchscreen_parameter +{ + int A, B, C, D, E, F; + int divider; }; enum touchscreen_mode @@ -38,6 +42,8 @@ enum touchscreen_mode from button_get_data */ }; +extern struct touchscreen_parameter calibration_parameters; +extern const struct touchscreen_parameter default_calibration_parameters; int touchscreen_calibrate(struct touchscreen_calibration *cal); int touchscreen_to_pixels(int x, int y, int *data); void touchscreen_set_mode(enum touchscreen_mode mode); |