simon-heinen / droidar

DroidAR Mobile Locationbased Augmented Reality Framework for Android
GNU General Public License v3.0
225 stars 275 forks source link

Refactoring gestures.PhoneGesture #2

Closed marmat closed 11 years ago

marmat commented 11 years ago

Makes use of "extensible enum pattern" so that third party clients can easily create new gesture types without having to modify the DroidAR library.

See also: blogs.oracle.comdarcy/entry/enums_and_mixins

Note: this is a breaking change. Since PhoneGestures are a very new part of the library and extensibility was not possible before this commit, we suspect that not many clients have adopted this sensor yet, though.

Signed-off-by: Martin Matysiak kaktus621@gmail.com