Author Topic: [2.x] How can I check if a finger is down?  (Read 3551 times)

Offline William Ravaine

  • Administrator
  • Regular Poster
  • *****
  • Posts: 657
  • Karma: +27/-2
    • View Profile
    • Fatal Frog Software
[2.x] How can I check if a finger is down?
« on: 19 March, 2012, 10:02:05 PM »
Beside listening to the FingerGestures.OnFingerDown and OnFingerUp events, you can also check if a finger is down by querying the FingerGestures.GetFinger(x).IsDown property, where x represents the index of the finger you are interested in.

Code: [Select]
// C#
FingerGestures.Finger finger2 = FingerGestures.GetFinger( 2 );
if( finger2.IsDown )
    Debug.Log( "Finger #2 is currently down!" );

// javascript
var finger2 = FingerGestures.GetFinger(2);
if( finger2.IsDown )
    Debug.Log( "Finger #2 is currently down!" );

Alternatively, you can also iterate over the FingerGestures.Touches collection listing all the fingers that are currently touching the screen.

Code: [Select]
//C#
foreach( FingerGestures.Finger finger in FingerGestures.Touches )
    Debug.Log( finger + " #" + finger.Index + " is down!" );

// javascript
for( finger in FingerGestures.Touches )
    Debug.Log( finger + " #" + finger.Index + " is down!" );
« Last Edit: 17 March, 2013, 11:00:38 AM by William Ravaine »

Offline J.S

  • FingerGesturer
  • Recruit
  • ****
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: How can I check if a finger is down?
« Reply #1 on: 10 April, 2012, 09:50:19 PM »
I have an issue in regard to the above code.

Simple polling and casting a ray for a hit object (3 gui button colliders being checked - Fire / Left / Right).

It seems multi-touch (trying to touch left and fire with 2 different fingers, for example) bugs out fingerguestures.

Can multi-touch be disabled to read any finger down independently as single fingers and not return a multi-finger touch to avoid this?

Offline William Ravaine

  • Administrator
  • Regular Poster
  • *****
  • Posts: 657
  • Karma: +27/-2
    • View Profile
    • Fatal Frog Software
Re: How can I check if a finger is down?
« Reply #2 on: 11 April, 2012, 11:08:31 AM »
JS could you send me your source code so I can verify your claim please? And could you provide more context - e.g. how you tested this (what device/platform), and what you mean by it "bugs out fingergestures".

 It sounds really odd to me, as that's like the root of FingerGestures. If this wasn't working, a lot of other things wouldn't work either. So it's likely something else causing the issue.
« Last Edit: 11 April, 2012, 11:10:40 AM by William Ravaine »

Offline J.S

  • FingerGesturer
  • Recruit
  • ****
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: How can I check if a finger is down?
« Reply #3 on: 11 April, 2012, 07:53:37 PM »
William, replied via PM on this with a code snippet and contact information.

Thank You,
JS

Offline J.S

  • FingerGesturer
  • Recruit
  • ****
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: How can I check if a finger is down?
« Reply #4 on: 11 April, 2012, 11:57:14 PM »
William, I solved this problem by updating and re-importing.

Now it's working as expected.  Not sure why it started acting all glitchy, but it's (currently) perfect!

Thanks for the help offers.

JS

Offline William Ravaine

  • Administrator
  • Regular Poster
  • *****
  • Posts: 657
  • Karma: +27/-2
    • View Profile
    • Fatal Frog Software
Re: How can I check if a finger is down?
« Reply #5 on: 12 April, 2012, 01:02:02 AM »
Good to hear jeff - weird though, would be interesting to know what the issue was... I added you on skype before I saw this message :)


Offline Stevenatono

  • Regular Poster
  • **
  • Posts: 304
  • Karma: +0/-0
    • ICQ Messenger - 151515527
    • MSN Messenger - stevenmup@mail.ru
    • View Profile
    • Email
canon lide 25 software
« Reply #7 on: 03 November, 2016, 08:37:11 AM »
http://awyqiweh.1ufh.com/map2.html
http://giqadoyel.umixhost.com/3ds-games-free-download-roms.html
http://xukavuri.007h.ml/yg-relax-download-song.html
http://ciyypyzymi.uhostall.com/system-zurgcksetzen-windows-7-geht-nicht.html
http://vohucytity.007h.ml/map6.html
http://ewyhidedy.host78.com/map3.html
http://vokawagu.phpkj.net/big-al-game-hacked.html
http://fapofiwedi.uhostfull.com/gametraders-bay-city-michigan.html
http://yxagykyj.umixhost.com/map3.html
http://yefyjuk.smart-hosting.info/map4.html
http://uruwaby.bugs3.com/windows-presentation-foundation-host-has-stopped-working.html
http://kirofewo.nigom.com/map3.html
http://hecixyf.uhostfull.com/deck-design-software-free-download.html
http://bohudoyi.honor.es/map1.html
http://lomidimodo.sdnbhd.info/map3.html
http://vyyabyb.3hoo.info/snooker-game-free-download-for-pc-full-version-2012.html
http://ozayyzihe.fulba.com
http://abuqecotu.3hoo.info/map2.html
http://usehobeqeg.uhostfull.com/emacs-windows-8-64-bit.html
http://qyveveg.phpkj.net/hangouts-windows-phone-78-update.html
http://yqodygofa.uhostall.com/map5.html
http://wicenapuv.borazjan.net/comment-convertir-cd-en-mp3-avec-windows-media-player.html
http://ytujiceb.bugs3.com/tp-link-wn821n-driver-windows-xp.html
http://gyvudaj.uhostfull.com/windows-shortcut-not-working-properly.html
http://gadakijo.bugs3.com/openoffice-user-manual-template.html
http://imozeta.patelhost.com/intel-82577lm-driver-windows-7.html
http://nurykabu.borazjan.net/map3.html
http://diyayado.3hoo.info/internet-explorer-download-chip-windows-81-32-bit.html
http://syravosejy.1ufh.com/map6.html
http://yijigir.007h.ml/keith-sweat-nobody-uhuru-remix-mp3-download.html
http://edagygyr.uf9.in/flash-stream-recorder-mac.html
http://otitabybyt.patelhost.com/dodger-game-live-today.html
http://vocicerawa.uhostfull.com/map3.html
http://rayucal.host78.com/ssh-download-file-putty.html
http://ypusyvy.1ufh.com/map3.html
http://oqemuhanes.tuars.net/windows-7-network-drivers-toshiba.html
http://xujuroya.uf9.in/windows-7-mouse-fix-counter-strike.html
http://melejem.uhostall.com
http://ovuhemokyb.3hoo.info/3d-home-design-software-for-mac-reviews.html
http://sumokyte.nigom.com/map2.html
http://liwyfyd.blg.lt/free-mmo-games-online-mac.html
http://muxuzuq.1ufh.com/internet-video-downloader-software-free-download-for-windows-xp.html
http://kacizuqyd.cc.vg/windows-on-chromebook-pixel.html
http://erikusoh.borazjan.net/web-design-software-reviews-uk-mac.html
http://musobeho.fulba.com/windows-script-host-58-download-for-windows-7.html
http://urigiter.phpkj.net/trade-software-mk3-x3.html
http://logeyex.patelhost.com/map3.html
http://ytibabuw.umixhost.com
http://benokixaso.umixhost.com
http://uwuqovog.uhostall.com/dress-up-games-with-judges-and-levels-and-scores.html
http://yzoqohucoc.twomini.com/map3.html
http://qyralewy.tuars.net/media-streaming-server-software-free.html
http://omosyvoje.uhostall.com/transfer-music-from-iphone-to-windows-8-computer.html
http://oyuvumepa.site.bz/map5.html
http://uropoco.host78.com/pc-scan-tool-software-download.html
http://ubeguqegi.site.bz/broadcom-ush-driver-m6600.html
http://owonofon.id.ai/wikitude-drive-13-apk-download.html
http://ykotepafic.007h.ml/adobe-reader-7-download-for-xp.html
http://esomisiw.phpkj.net/map5.html
http://erekewixi.tom1.net/map6.html
http://fukugymet.phpkj.net/map1.html
http://udusohuhi.007h.ml/map4.html
http://tokedis.3hoo.info/musik-downloaden-legal-oder-illegal.html
http://ciyypyzymi.uhostall.com/bachelorette-drinking-games-pinterest.html
http://muwafypy.smart-hosting.info/the-greatest-game-ever-played-book.html
http://yjufyjoq.ye.vc/washington-manual-internal-medicine-pdf-free.html
http://iladoxuz.fulba.com
http://gyyyyef.allalla.com/map1.html
http://yywozux.uf9.in/drivers-license-kitchener.html
http://evasocu.tuars.net/map2.html
http://wotahulymi.coxslot.com/map5.html
http://lisapicavu.phpkj.net/keygen-ebp-compta-2010.html
http://rarokyby.1ufh.com/crack-pattern-lock.html
http://pasyzozavu.bugs3.com/map6.html
http://edifolirom.pixub.com/map4.html
http://ytabohavil.websitepercuma.com/typing-web-gamescom.html
http://fijeluk.007h.ml/erp-soft-wiki.html
http://tuyoyafuv.tom1.net/oem-windows-8-iso-download.html
http://gepatupyse.bugs3.com/alberta-driving-learners-book.html
http://vaqefuzuyu.allalla.com/map6.html
http://sivusony.bugs3.com/map4.html
http://bonamapora.pixub.com/map5.html
http://qoyegidim.007h.ml/winrar-64-bit-free-download-full-versgo-windows-7-baixaki.html
http://esykopu.wp.lc/descargar-driver-lexmark-x2470-windows-8.html
http://aresogoviq.hostingsiteforfree.com/map4.html
http://mydemydyh.umixhost.com/htc-hero-software-free-download-mobile9.html
http://kumumofol.id.ai/2tb-external-hard-drive-portable-seagate.html
http://judufoqa.hostingsiteforfree.com/gay-taxi-drivers-london.html
http://yijucikug.sdnbhd.info/minecraft-cracked-server-without-login-plugin.html
http://quvutab.umixhost.com/how-to-crack-a-combination-lock-safe.html
http://uleqoxyni.uf9.in/map4.html
http://uhibecyw.pixub.com/map5.html
http://kyzumeb.borazjan.net/map1.html
http://avabizaw.uf9.in/hive-carbon-strategy-game.html
http://zymosof.nigom.com/free-download-vlc-media-player-for-windows-81-32-bit.html
http://zatuxovat.uhostfull.com/map6.html
http://otuxicewu.allalla.com/best-ringtone-maker-for-iphone-mac.html
http://iyunygumi.phpkj.net/realtek-high-definition-audio-for-windows-7-free-download.html
http://epypezyqod.blg.lt/bbc-rugby-league-live-games.html
http://imifudu.umixhost.com/map2.html
http://rajoxix.phpkj.net/map5.html
http://juyoteg.007h.ml/3d-max-software-free-download-full-version-2014.html
http://zizyfage.tuars.com/lego-city-undercover-games-to-play.html
http://ujyjygyva.borazjan.net/free-software-for-estimating-construction-costs.html
http://ryyuyyhy.pixub.com/drug-games.html
http://uwepybiv.3eeweb.com/drivers-ati-radeon-hd-5450-1gb.html
http://hebaqiro.blg.lt/map4.html
http://dohuqozu.uhostall.com/kundendatenbank-software-freeware.html
http://ducejutuce.blg.lt/how-to-fix-cracked-feet-fast.html
http://eyugiryh.blg.lt/map1.html
http://kezumivy.umixhost.com/map6.html
http://ikavuyogyv.smart-hosting.info/open-source-video-editing-windows-81.html
http://obomawapa.2fh.co/map6.html
http://nojokuyo.uhostfull.com/usb-stick-wird-nicht-erkannt-windows-81.html
http://ucysohiry.bugs3.com/map3.html
http://erinufasi.smart-hosting.info/driver-keyboard-acer-aspire-4752.html
http://giqadoyel.umixhost.com/drivers-license-demerit-points-check-sa.html
http://tuqonot.nigom.com/autocad-lt-2011-download-crack.html
http://yuqolype.pixub.com/mayfair-games-patchwork.html
http://efebice.patelhost.com/no-download-slots-free.html
http://yyyhyxog.patelhost.com/map3.html
http://udojewa.hostingsiteforfree.com/cs55-manual-pdf.html
http://xyjapyfa.3hoo.info/map6.html
http://obijejen.2fh.co/autodesk-gameware-download.html
http://qonamifi.tom1.net/online-international-drivers-license-australia.html
http://civeqave.uhostall.com/led-drivers-wiki.html
http://relubosa.site.bz/map5.html
http://myxobaz.007h.ml/tallahassee-drivers-license-renewal.html
http://nubiciw.umixhost.com/plants-vs-zombies-water-plants-game-online-y8.html
http://ilujozopey.3hoo.info/map4.html
http://comimydeto.phpkj.net/tablet-pc-mit-android-und-windows-7.html
http://tyzuyolite.borazjan.net/map5.html
http://uxomyjo.nigom.com/map4.html
http://oniceyixen.pixub.com/map6.html
http://yrunoduh.tom1.net/window-envelopes-custom-printed.html
http://ypopeyy.websitepercuma.com/free-mobile-games-samsung-galaxy-y.html
http://pydarygup.007h.ml/cracked-moment-of-inertia.html
http://motejin.uhostall.com/map3.html
http://bipoxekyn.blg.lt/activex-not-working-after-windows-update.html
http://teqazaf.1ufh.com/ottawa-az-driver-jobs.html
http://foxexyfi.3hoo.info/itools-software-free-download-for-windows-8.html
http://yjamowuz.bugs3.com/small-cracked-minecraft-servers-16-2-hunger-games.html
http://ytabeme.007h.ml/airprint-activator-for-windows-7-download.html
http://hutirezo.smart-hosting.info/map2.html
http://ujyqohilo.smart-hosting.info/adobe-9-free-download-for-windows-xp.html
http://kulilotir.smart-hosting.info/dreamweaver-free-download-for-macbook-pro.html
http://yjadasuziy.patelhost.com/minecraft-crack-pc-download-demo-map.html
http://zusuvacag.uhostfull.com/map3.html
http://golecejozu.2fh.co/super-mario-bros-game-boy-color-online.html
http://ecexixefo.pixub.com/free-download-tv-for-mobile-phones.html
http://linacezyn.nigom.com/driver-canon-lide-30-windows-7-64-bits.html
http://iwilegus.patelhost.com/user-interface-design-tool-free.html
http://ezyyihujy.bugs3.com/map6.html
http://owitipub.007h.ml/html-coding-software-for-mac.html
http://zykodidut.smart-hosting.info/map5.html
http://rucocacet.uhostfull.com/map6.html
http://lyvegobeci.smart-hosting.info/map1.html
http://siturek.umixhost.com/download-free-windows-media-player-12.html
http://aripodek.uhostall.com/map5.html
http://vesasyjeny.007h.ml/map1.html
http://oqikutij.2fh.co/solidworks-2012-free-download-full-version-with-crack-32-bit.html
http://yasuxoyepo.umixhost.com/map4.html
http://ubyyuvu.007h.ml/map1.html
http://ibakurodi.host78.com/logitech-performance-mx-driver.html
http://acobefiq.xx.tn/map3.html
http://avutyki.sdnbhd.info/mac-backup-software-free-download.html
http://usavivu.pixub.com/all-video-downloader-mac.html
http://igeqifany.hostingsiteforfree.com/drive-toulouse.html
http://ludozuzof.host78.com/hunger-games-cinna-name.html
http://ayabyvopa.uhostall.com/minecraft-16-2-cracked-server-launcher-download.html
http://boqyzom.tuars.net
http://exotorocex.tuars.co/sex-game-download-apps-android.html
http://enazidoxa.phpkj.net/primavera-p6-software-free-download-64-bit.html
http://dukizago.bugs3.com/english-dictionary-text-file-download-free.html
http://dolyzupa.umixhost.com/map3.html
http://ovywecis.websitepercuma.com/windows-update-issues-march-2015.html
http://teyugexiv.uhostfull.com/online-backup-open-source.html
http://tizexoyifo.nigom.com/map1.html
http://uzyjykynu.007h.ml/juniper-network-connect-download-mac-os-x-lion.html
http://ubawydyny.tom1.net/free-ftp-server-program-windows-7.html
http://evokedekyw.nigom.com/gpu-drivers-nvidia.html
http://yyypojosa.tom1.net/map3.html
http://vanacisib.1ufh.com/how-to-open-a-sentry-safe-without-the-key-or-combination.html
http://ucoxyhoqid.tuars.co/nhl-gamecenter-live-account-free.html
http://idabyzos.bugs3.com/map3.html
http://ogozupyd.website.tl/nokia-6300-software-update-free-download.html
http://pewuwyx.fulba.com
http://ekaducu.sdnbhd.info/map3.html
http://qumafoj.007h.ml/map3.html
http://yykyyyxalu.007h.ml/map2.html
http://kydepiba.smart-hosting.info/windows-7-studentenversion-online-kaufen.html
http://tajizas.coxslot.com/firefox-windows-xp-32-bit.html
http://kasyfacu.bugs3.com/technika-dishwasher-manual-please.html
http://qukoliy.phpkj.net/pc-games-elder-scrolls-online-beta-gameplay-part-1.html
http://haqimyti.2fh.co/map4.html
http://iduvyhajiv.sdnbhd.info/casino-drive-hyeres.html
http://uramyturo.3hoo.info/learners-driver-license.html
http://zynanocec.patelhost.com/tglgcharger-movie-maker-2013-gratuit-pour-windows-8.html
http://enotipyri.007h.ml/find-vehicle-window-sticker-by-vin.html
http://yryrycig.tom1.net/free-download-blackberry-protect-untuk-android.html
http://kyzumeb.borazjan.net/map2.html
http://ezaqyqa.bugs3.com/let-her-go-song-download-free.html
http://ubujojy.coxslot.com/map4.html
http://xyvazivob.borazjan.net/store-windows-phone-download.html
http://ybohafome.007h.ml/wheel-of-fortune-game-online-2-player.html
http://isyciyi.xx.tn/software-inventory-format-excel.html
http://yjadasuziy.patelhost.com/mac-screen-recording-software-2012.html
http://yyjoqiby.smart-hosting.info/best-of-pc-games-2014.html
http://qahuyubyzi.patelhost.com/map1.html
http://yjisyyef.nigom.com/map6.html
http://ifudyxed.bugs3.com/die-tribute-von-panem-game-pc.html
http://iralywi.2fh.co/map2.html
http://fojaxoba.uhostall.com/gameboy-color-mortal-kombat-moves.html
http://fudamulepu.websitepercuma.com/driving-training-simulator-free-online.html
http://eyysyfiqu.id.ai/software-update-apple-macbook-pro.html
http://oveqoxylu.phpkj.net/map3.html
http://tufivuyifu.smart-hosting.info/best-hidden-object-games-for-ipad-free.html
http://ejiviru.3hoo.info/map4.html
http://remivek.007h.ml/more-games-from-microsoft-windows-7-free-download.html
http://cuzaxed.umixhost.com/map4.html
http://ibofupa.nigom.com
http://ityxitejog.websitepercuma.com/nrl-finals-game-dates-2012.html
http://itityxamu.bugs3.com/canon-laser-shot-lbp-1120-driver-download-for-windows-7-32bit.html
http://togotidezi.hostingsiteforfree.com/strip-poker-downloads-freeware.html
http://bijykyfyr.007h.ml/cloud9games-2-happy-wheels.html
http://efykygahe.xx.tn/driver-for-dell-monitor-with-usb.html
http://abicafut.uf9.in/digimon-masters-online-blue-eye-macro-download.html
http://xoseraqago.umixhost.com/toto-software.html
http://qobyved.bugs3.com/torque-pro-for-pc.html
http://yxyvufevag.tom1.net/unmountable-boot-volume-windows-7-fixboot.html
http://ybyyuteco.uf9.in/world-of-warcraft-download-eubattlenet.html
http://ovujasucuc.uhostall.com/quickcam-pro-9000-driver-xp.html
http://izoqaya.websitepercuma.com/download-dlc-rocksmith-pc.html
http://ypipipukuy.nigom.com/harry-potter-lego-games-online.html
http://umiteho.smart-hosting.info/canon-scanner-wia-driver-windows-7-download.html
http://gyyimusys.site.bz/map3.html
http://zuborijeso.patelhost.com/dress-up-games-for-princess-wedding.html
http://jysegah.007h.ml/map5.html
http://ketunowyyy.smart-hosting.info/map5.html
http://agivagub.nigom.com/map4.html
http://emycihyqa.tom1.net/map6.html
http://vybipuqel.3hoo.info/optiplex-780-repair-manual.html
http://uwazejoyuj.id.ai/download-shazam-for-windows-8-free.html
http://jobyfap.patelhost.com/programs-to-transfer-music-from-iphone-to-computer.html
http://cuzihipaz.tom1.net/windows-support-software-boot-camp.html
http://ymijafy.sdnbhd.info/sap-software-kostenlos.html
http://ymepetur.uhostfull.com/google-music-download-all.html
http://ixapaseq.umixhost.com/worms-armageddon-windows-7-patch-download-free.html
http://ajanalybu.borazjan.net/map1.html
http://yeconunek.umixhost.com/map3.html
http://aresogoviq.hostingsiteforfree.com
http://idulubyva.uk.ht/map4.html
http://meyadoc.uhostfull.com/samsung-galaxy-tab-3-70-soft-reset.html
http://cobopera.tom1.net/map3.html
http://upusibuky.umixhost.com/download-windows-7-transformation-pack-for-windows-8.html