English
Source / code snippets

Gestensteuerung

 

HofK
with event can very simply and clear a adjust, situationsbezogene Gestensteuerung release. the example operates with of/ one konstanten difference of 250 Pixeln. not plenty aufwändiger is the Relativierung with screen.width and screen.height.
(Syntax 2016 adjusted.)

in the example GPS Track  [...]  so implementiert.
// GPS Tracking :
// tr_01: 1 Datenaufnahme active , 0 take completed
// procedure gpsprint: display the data ongoing and
// to Datenaufnahme back and forth to touch - Region
// mvd: count the touchmove-spots
// tr_erg: for procedure trackergebnisse  (data 1x Save)

proc event id data

    if id==3000 && tr_01==1// gps data and tracking active

        //   processing the data (gpstrack) with display (gpsprint)
        //    ...

    endif

    if id==200// touchstart

        xa = data.x
        ya = data.y
        case  tr_01==0 :  gpsprint ya// ya: Datenanzeige to/back
        mvd = 0// with Touchstart 0 touchmoves

    endif

    if id==201// touchmov

        mvd++// Events mitzählen

    endif

    if id==202// touchend

        xe = data.x
        ye = data.y

        if tr_01==1// Geste for end Datenaufnahme erfassen

            if mvd>8 && (xa+250)<xe && (ya+250)<ye// of supra \ streichen

                tr_01 = 0// tracking inaktiv settle
                mvd = 0// touchmoves zurücksetzen
                case tr_erg==1 : trackergebnisse//there: tr_erg=0 (1x Save)
                gpsprint// Datenanzeige

            endif

        endif

        if  tr_01==0// tracking inaktiv - Geste for end Program

            if  mvd>8 && xa>(xe+250) && (ya+250)<ye// of supra / streichen

                end

            endif

        endif

    endif

endproc

 
12/22/15  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.332 Views

Untitledvor 0 min.
Tommy03/29/22
Glubbfan05/12/21
AndreasS11/26/18
Rc09/13/17
More...

Themeninformationen

this Topic has 1 subscriber:

HofK (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie