[FEATURE] AndEngineControls : Smooth pinch zoom

  ... the case you feel the need for a new feature or want to submit one.

[FEATURE] AndEngineControls : Smooth pinch zoom

Postby GabS » Thu Jan 03, 2013 4:14 am

Hi all,

I am currently creating a package that handles usual GUI controls and I want to distribute it under open source licence. I will propose new features one by one ocasionally, when they will be ready (some are already distributed but are not really done).

This time I present a smooth pinch zoom.

Source code : https://github.com/killoctal/AndEngineC ... hZoom.java
Documentation : http://killoctal.com/andenginecontrols- ... _zoom.html

Usage example :
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. class MyScene extends Scene
  2. {
  3.         SmoothPinchZoom mPinch;
  4.        
  5.         public MyScene()
  6.         {
  7.                 mPinch = new SmoothPinchZoom(this, myZoomCamera);
  8.         }
  9.        
  10.         @Override
  11.         public boolean onSceneTouchEvent(Scene pScene, TouchEvent pSceneTouchEvent)
  12.         {
  13.                 // Main method : transmit the event to the pincher
  14.                 return mPinch.handle(pSceneTouchEvent);
  15.         }
  16. }
Parsed in 0.010 seconds, using GeSHi 1.0.8.4


That's it ! ;)

All suggestions will be apprecied :)
GabS
 
Posts: 20
Joined: Thu Oct 11, 2012 12:51 am

Return to Features

Who is online

Users browsing this forum: No registered users and 8 guests