tranleduy2000 / pascalnide

Pascal Compiler for Android
92 stars 25 forks source link

[Touch unit] (multi) touch detection #5

Open pakLebah opened 7 years ago

pakLebah commented 7 years ago

There's no Touch unit available yet. So, I propose to provide Touch unit to handle touch and gesture events. For example:

tranleduy2000 commented 7 years ago

Pascal is not the language used for event programming, I would push these events into a queue and you could get it with a function like getLastGesture.

pakLebah commented 7 years ago

Wrong! It's your Pascal N-IDE language that is unable to handle event programming. Lazarus IDE (GUI IDE for Free Pascal) and Delphi had been doing it since '90-ish. Your Pascal language —as I've been saying from the beginning— lacks of so many modern Pascal language features that makes Pascal programming with your app is so limiting. It's your fault as the creator, not Pascal.

Modern Pascal can do anything other languages can do. You can write cross platform applications using RemObjects' Oxygene i.e. for MacOS/iOS Cocoa, Windows .Net, and Java Android. You can even write front-end web applications using Smart Pascal (that compiles Pascal codes into optimized and high performance JavaScript code). While your Pascal is hardly able to handle object oriented programming correctly. Your Pascal N-IDE app is good, but the language is like Pascal from the '80-ish… old and limited.

tranleduy2000 commented 7 years ago

I am developing class type, I will support event programming in the future.